From 049cdec740e0e6d38fde00870b9c82065cbbf883 Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Mon, 25 Mar 2019 08:32:46 -0700 Subject: [PATCH] force modules on --- build/build.sh | 1 + build/test.sh | 1 + 2 files changed, 2 insertions(+) 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)