Commit cb7f811d authored by Jérome Perrin's avatar Jérome Perrin

golang wip'

parent 5d9e5670
......@@ -182,14 +182,15 @@ stop-on-error = true
[gowork.goinstall]
recipe = plone.recipe.command
command = bash -c ". ${gowork:env.sh}
set -e
set -ex
for x in $(echo -n '${gowork:install}' |tr '\n' ' '); do
case "\$x" in
# external module, e.g. golang.org/x/tools/gopls@v0.4.3
*@*)
echo GOMOD \$x
GO111MODULE=on go install ${gowork:buildflags} -v \$x
dir=\"\$${x%%@*}\"
GO111MODULE=on go install -v ${gowork:buildflags} -v \$dir
;;
# locally-cloned module source, e.g. <module-src-location>:./...
......@@ -209,7 +210,7 @@ command = bash -c ". ${gowork:env.sh}
done
# clean build cache
chmod -R a+rwx ${gowork:directory}/cache && rm -rf ${gowork:directory}/cache
#chmod -R a+rwx ${gowork:directory}/cache && rm -rf ${gowork:directory}/cache
"
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