common/build-style/go.sh: update go build style for go1.21.0

This commit is contained in:
Kirill 2023-08-12 20:21:53 +04:00 committed by Michael Aldridge
parent 9499a43f0a
commit 4c22fd9b48
2 changed files with 13 additions and 1 deletions

View file

@ -39,6 +39,10 @@ export CGO_CXXFLAGS="$CXXFLAGS"
export CGO_LDFLAGS="$LDFLAGS"
export CGO_ENABLED="${CGO_ENABLED:-1}"
export GO111MODULE=auto
export GOTOOLCHAIN=local
export GOPROXY="https://proxy.golang.org,direct"
export GOSUMDB="sum.golang.org"
case "$XBPS_TARGET_MACHINE" in
*-musl) export GOCACHE="${XBPS_HOSTDIR}/gocache-muslc" ;;
*) export GOCACHE="${XBPS_HOSTDIR}/gocache-glibc" ;;