Merge pull request #127626 from thockin/stop_disabling_GO111MODULE_in_tests

Stop setting GO111MODULE=off in tests
This commit is contained in:
Kubernetes Prow Robot
2024-09-25 21:02:17 +01:00
committed by GitHub
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"