diff --git a/build/build.sh b/build/build.sh index ecde95a..fa9628d 100755 --- a/build/build.sh +++ b/build/build.sh @@ -34,6 +34,7 @@ fi export CGO_ENABLED=0 export GOARCH="${ARCH}" export GOOS="${OS}" +export GO111MODULE=on export GOFLAGS="-mod=vendor" go install \ diff --git a/build/test.sh b/build/test.sh index 0512283..b1d144b 100755 --- a/build/test.sh +++ b/build/test.sh @@ -19,6 +19,7 @@ set -o nounset set -o pipefail export CGO_ENABLED=0 +export GO111MODULE=on export GOFLAGS="-mod=vendor" TARGETS=$(for d in "$@"; do echo ./$d/...; done)