diff --git a/common/environment/build-style/go.sh b/common/environment/build-style/go.sh index 337b5279d0..6bdf6529a8 100644 --- a/common/environment/build-style/go.sh +++ b/common/environment/build-style/go.sh @@ -39,6 +39,7 @@ export CGO_CPPFLAGS="$CPPFLAGS" export CGO_CXXFLAGS="$CXXFLAGS" export CGO_LDFLAGS="$LDFLAGS" export CGO_ENABLED=1 +export GO111MODULE=auto case "$XBPS_TARGET_MACHINE" in *-musl) export GOCACHE="${XBPS_HOSTDIR}/gocache-muslc" ;; *) export GOCACHE="${XBPS_HOSTDIR}/gocache-glibc" ;;