This is an automated email from the ASF dual-hosted git repository. jcabrerizo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/brooklyn-client.git
The following commit(s) were added to refs/heads/master by this push: new 53eacb5 Change GO386 depending on go version available new 3250c11 Merge pull request #91 from jcabrerizo/fix/apache-deploy 53eacb5 is described below commit 53eacb5882726c3e20cefd199fae7c27c0de320b Author: Juan Cabrerizo <j...@cloudsoft.io> AuthorDate: Wed Sep 8 09:51:06 2021 +0100 Change GO386 depending on go version available --- cli/release/build.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/cli/release/build.sh b/cli/release/build.sh index 3a3b0be..fc596de 100755 --- a/cli/release/build.sh +++ b/cli/release/build.sh @@ -184,6 +184,19 @@ See golang.org for more information, or run maven with '-Dno-go-client' to skip. exit 1 fi +if !(( "$GO_V" >= 16 )) ; then + export GO386=387 + echo "Updated GO386=$GO386 due GO version compatibilityq" + cat 1>&2 << \ +--MARKER-- + +ERROR: Incompatible Go language version: $GO_VERSION + +Go version 1.16 doesn't support GO386=387 + +--MARKER-- +fi + mkdir -p $outdir # Disable use of C code modules (causes problems with cross-compiling)