Commit e900cbb9 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent f06ad2ed
...@@ -6,7 +6,7 @@ extends = ...@@ -6,7 +6,7 @@ extends =
../git/buildout.cfg ../git/buildout.cfg
../pkgconfig/buildout.cfg ../pkgconfig/buildout.cfg
parts = gowork parts = go gowork
# ---- Go builds itself ---- # ---- Go builds itself ----
...@@ -84,6 +84,18 @@ environment-extra = ...@@ -84,6 +84,18 @@ environment-extra =
# #
# [gowork] # [gowork]
# buildflags = -race # buildflags = -race
#
# XXX ${go:exe}
[go]
recipe = slapos.recipe.template:jinja2
exe = ${buildout:bin-directory}/go
rendered= ${:exe}
mode = 755
template= inline:
#!/bin/sh -e
. ${gowork:env.sh}
exec go "$@"
[gowork] [gowork]
directory = ${buildout:directory}/go.work directory = ${buildout:directory}/go.work
src = ${:directory}/src src = ${:directory}/src
......
...@@ -34,6 +34,7 @@ setup-eggs = ...@@ -34,6 +34,7 @@ setup-eggs =
[wendelin.core-dev-env] [wendelin.core-dev-env]
# wendelin.core-dev needs git to build # wendelin.core-dev needs git to build
PATH = ${git:location}/bin:%(PATH)s PATH = ${git:location}/bin:%(PATH)s
GO = ${go:exe}
[wendelin.core-repository] [wendelin.core-repository]
......
...@@ -12,10 +12,15 @@ parts = ...@@ -12,10 +12,15 @@ parts =
slapos-cookbook slapos-cookbook
instance.cfg instance.cfg
# XXX tmp
[wendelin.core-repository] [wendelin.core-repository]
repository = https://lab.nexedi.com/kirr/wendelin.core.git repository = https://lab.nexedi.com/kirr/wendelin.core.git
branch = t branch = t
# XXX tmp (gowork depends on gowork.goinstall)
[gowork]
install =
# python interpreter with wendelin.core and all other eggs. # python interpreter with wendelin.core and all other eggs.
[wendelin.core-dev] [wendelin.core-dev]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment