Update hack scripts to use go mod

This commit is contained in:
Jordan Liggitt
2019-03-04 00:27:03 -05:00
parent 7f246d461b
commit 2ea3cbdcbc
24 changed files with 596 additions and 629 deletions

View File

@@ -22,6 +22,12 @@ set -o pipefail
# https://github.com/kubernetes/kubernetes/issues/52255
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.
# As individual scripts (like hack/update-vendor.sh) make use of go modules,
# they can explicitly set GO111MODULE=on
export GO111MODULE=auto
# The root of the build/dist directory
KUBE_ROOT="$(cd "$(dirname "${BASH_SOURCE}")/../.." && pwd -P)"