Commit 93f4b7f4 authored by Ophélie Gagnard's avatar Ophélie Gagnard

component/golang/buildout.cfg:

- Change set GOPATH to buildout's directory so that Go packages are sent to OBS.
- Switch back the default behavior to running Go tests and skip them in section golang1.17
parent c96b1163
......@@ -19,7 +19,7 @@ shared = true
configure-command = :
location = @@LOCATION@@
make-binary =
make-targets= cd src && unset GOBIN && ./make.bash && cp -alf .. ${:location}
make-targets= cd src && unset GOBIN && ./all.bash && cp -alf .. ${:location}
# some testdata files have an issue with slapos.extension.strip.
post-install = ${findutils:location}/bin/find ${:location}/src -type d -name testdata -exec rm -rf {} \; || true
environment =
......@@ -70,6 +70,11 @@ environment-extra =
<= golang-common
url = https://golang.org/dl/go1.17.6.src.tar.gz
md5sum = dc57f93f323e9f8189e5ffc1f223e346
make-targets= cd src && unset GOBIN && ./make.bash && cp -alf .. ${:location}
post-install =
${findutils:location}/bin/find ${:location}/src -type d -name testdata -exec rm -rf {} \; || true
${:location}/bin/go env -w GOPATH=${buildout:directory}/go
# go1.17 needs go1.4 to bootstrap
environment-extra =
......
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