From ccebf6f4b3cb77820492b572babd0118caa23ffb Mon Sep 17 00:00:00 2001 From: Russ Magee Date: Sat, 9 Apr 2022 19:47:31 -0700 Subject: [PATCH] CI script - go mod creation from scratch w/o GOPROXY to test all dependency fetches --- bacillus/ci_pushbuild.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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 ..."