opt out of module mode for builds

This commit is contained in:
Jordan Liggitt
2019-06-12 13:52:50 -04:00
parent 9d708b0203
commit 8618c09369
5 changed files with 18 additions and 3 deletions

View File

@@ -23,10 +23,10 @@ set -o pipefail
unset CDPATH
# Until all GOPATH references are removed from all build scripts as well,
# explicitly reset to auto mode to avoid picking up user-set GO111MODULE preferences.
# explicitly disable module mode to avoid picking up user-set GO111MODULE preferences.
# As individual scripts (like hack/update-vendor.sh) make use of go modules,
# they can explicitly set GO111MODULE=on
export GO111MODULE=auto
export GO111MODULE=off
# The root of the build/dist directory
KUBE_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd -P)"