mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
Stop setting GO111MODULE=off in tests
This commit is contained in:
parent
8ccc878de0
commit
061c4f4f70
@ -42,14 +42,9 @@ export KUBE_ROOT
|
|||||||
|
|
||||||
export PATH=${GOPATH}/bin:${PWD}/third_party/etcd:/usr/local/go/bin:${PATH}
|
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
|
# Install tools we need
|
||||||
GO111MODULE=on go -C "${KUBE_ROOT}/hack/tools" install github.com/cespare/prettybench
|
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 gotest.tools/gotestsum
|
||||||
|
|
||||||
# Disable the Go race detector.
|
# Disable the Go race detector.
|
||||||
export KUBE_RACE=" "
|
export KUBE_RACE=" "
|
||||||
|
@ -26,13 +26,8 @@ set -o xtrace
|
|||||||
|
|
||||||
export PATH=${GOPATH}/bin:${PWD}/third_party/etcd:/usr/local/go/bin:${PATH}
|
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
|
# 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
|
# Disable coverage report
|
||||||
export KUBE_COVER="n"
|
export KUBE_COVER="n"
|
||||||
|
Loading…
Reference in New Issue
Block a user