Stop setting GO111MODULE=off in tests

This commit is contained in:
Tim Hockin 2024-09-25 08:50:40 -07:00
parent 8ccc878de0
commit 061c4f4f70
No known key found for this signature in database
2 changed files with 3 additions and 13 deletions

View File

@ -42,14 +42,9 @@ export KUBE_ROOT
export PATH=${GOPATH}/bin:${PWD}/third_party/etcd:/usr/local/go/bin:${PATH}
# 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 make use of go modules, they can explicitly set GO111MODULE=on
export GO111MODULE=off
# Install tools we need
GO111MODULE=on go -C "${KUBE_ROOT}/hack/tools" install github.com/cespare/prettybench
GO111MODULE=on go -C "${KUBE_ROOT}/hack/tools" install gotest.tools/gotestsum
go -C "${KUBE_ROOT}/hack/tools" install github.com/cespare/prettybench
go -C "${KUBE_ROOT}/hack/tools" install gotest.tools/gotestsum
# Disable the Go race detector.
export KUBE_RACE=" "

View File

@ -26,13 +26,8 @@ set -o xtrace
export PATH=${GOPATH}/bin:${PWD}/third_party/etcd:/usr/local/go/bin:${PATH}
# 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 make use of go modules, they can explicitly set GO111MODULE=on
export GO111MODULE=off
# Install tools we need
GO111MODULE=on go -C "./hack/tools" install gotest.tools/gotestsum
go -C "./hack/tools" install gotest.tools/gotestsum
# Disable coverage report
export KUBE_COVER="n"