Commit 17445b1f authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent e900cbb9
...@@ -6,7 +6,7 @@ extends = ...@@ -6,7 +6,7 @@ extends =
../git/buildout.cfg ../git/buildout.cfg
../pkgconfig/buildout.cfg ../pkgconfig/buildout.cfg
parts = go gowork parts = gowork go
# ---- Go builds itself ---- # ---- Go builds itself ----
...@@ -66,6 +66,7 @@ environment-extra = ...@@ -66,6 +66,7 @@ environment-extra =
# users should add `install` field to [gowork] to describe packages they want to # users should add `install` field to [gowork] to describe packages they want to
# be installed (+ automatically their dependencies are installed too). e.g. # be installed (+ automatically their dependencies are installed too). e.g.
# #
# XXX install is optional (make empty by default)
# [gowork] # [gowork]
# install = # install =
# lab.nexedi.com/kirr/neo/go/... # lab.nexedi.com/kirr/neo/go/...
...@@ -85,7 +86,7 @@ environment-extra = ...@@ -85,7 +86,7 @@ environment-extra =
# [gowork] # [gowork]
# buildflags = -race # buildflags = -race
# #
# XXX ${go:exe} # ${go:exe} is a standalone executable that runs go in activated gowork environment.
[go] [go]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
exe = ${buildout:bin-directory}/go exe = ${buildout:bin-directory}/go
...@@ -136,9 +137,10 @@ stop-on-error = true ...@@ -136,9 +137,10 @@ stop-on-error = true
# install go packages # install go packages
# clients should put package list to install to gowork:install ("..." requests installing everything) # clients should put package list to install to gowork:install ("..." requests installing everything)
# XXX empty by default
[gowork.goinstall] [gowork.goinstall]
recipe = plone.recipe.command recipe = plone.recipe.command
command = bash -c ". ${gowork:env.sh} && go install ${gowork:buildflags} -v $(echo -n '${gowork:install}' |tr '\n' ' ')" command = bash -c ". ${gowork:env.sh} && test -z '${gowork:install}' || go install ${gowork:buildflags} -v $(echo -n '${gowork:install}' |tr '\n' ' ')"
update-command = ${:command} update-command = ${:command}
stop-on-error = true stop-on-error = true
......
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