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

.

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