Remove references to "GO111MODULE"

This commit is contained in:
Tim Hockin
2024-01-05 22:46:14 -08:00
parent 2a1147a434
commit e84adf611f
13 changed files with 9 additions and 25 deletions

View File

@@ -597,7 +597,7 @@ kube::golang::setup_gomaxprocs() {
if ! command -v ncpu >/dev/null 2>&1; then
# shellcheck disable=SC2164
pushd "${KUBE_ROOT}/hack/tools" >/dev/null
GO111MODULE=on go install ./ncpu || echo "Will not automatically set GOMAXPROCS"
go install ./ncpu || echo "Will not automatically set GOMAXPROCS"
# shellcheck disable=SC2164
popd >/dev/null
fi

View File

@@ -25,12 +25,6 @@ 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 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=off
# FIXME(dims): Note that here we assume that if GOFLAGS are already set we
# leave them as-is and not try to add providerless to it. So if you
# really need to set your own GOFLAGS, ensure you add "providerless" explicitly