build-style/go: set GO111MODULE=auto

This commit is contained in:
Roberto Ricci 2021-03-12 14:11:11 +01:00 committed by Érico Nogueira Rolim
parent a4c6288ff2
commit 436c814fd4

View file

@ -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" ;;