diff --git a/bacillus/ci_pushbuild.sh b/bacillus/ci_pushbuild.sh index 54bc527..4f98960 100755 --- a/bacillus/ci_pushbuild.sh +++ b/bacillus/ci_pushbuild.sh @@ -4,9 +4,10 @@ export GOPATH="${HOME}/go" export PATH=/usr/local/bin:/usr/bin:/usr/lib/ccache/bin:/bin:$GOPATH/bin -export GO111MODULE=on -# GOCACHE will be phased out in v1.12. [github.com/golang/go/issues/26809] -export GOCACHE="${HOME}/.cache/go-build" +export GO111MODULE=off +export GOPROXY="direct" +#!# GOCACHE will be phased out in v1.12. [github.com/golang/go/issues/26809] +#!export GOCACHE="${HOME}/.cache/go-build" echo "workdir: ${BACILLUS_WORKDIR}" mkdir -p "${BACILLUS_ARTFDIR}" @@ -27,6 +28,12 @@ ls ############ stage "Build" ############ +echo "Recreating go.mod from scratch ..." +mv go.mod go.mod.git +mv go.sum go.sum.git +go mod init +go mod tidy + echo "Cleaning go mod cache ..." go clean -modcache echo "Cleaning go cache ..."