mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
opt out of module mode for builds
This commit is contained in:
parent
9d708b0203
commit
8618c09369
@ -38,6 +38,11 @@ retry() {
|
||||
|
||||
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
|
||||
|
||||
go install k8s.io/kubernetes/vendor/github.com/cespare/prettybench
|
||||
go install k8s.io/kubernetes/vendor/gotest.tools/gotestsum
|
||||
|
||||
|
@ -37,6 +37,11 @@ retry() {
|
||||
|
||||
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
|
||||
|
||||
go install k8s.io/kubernetes/vendor/gotest.tools/gotestsum
|
||||
|
||||
# Enable the Go race detector.
|
||||
|
@ -23,10 +23,10 @@ set -o pipefail
|
||||
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.
|
||||
# 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=auto
|
||||
export GO111MODULE=off
|
||||
|
||||
# The root of the build/dist directory
|
||||
KUBE_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd -P)"
|
||||
|
@ -250,7 +250,7 @@ produceJUnitXMLReport() {
|
||||
|
||||
if ! command -v gotestsum >/dev/null 2>&1; then
|
||||
kube::log::error "gotestsum not found; please install with " \
|
||||
"go install k8s.io/kubernetes/vendor/gotest.tools/gotestsum"
|
||||
"GO111MODULE=off go install k8s.io/kubernetes/vendor/gotest.tools/gotestsum"
|
||||
return
|
||||
fi
|
||||
gotestsum --junitfile "${junit_xml_filename}" --raw-command cat "${junit_filename_prefix}"*.stdout
|
||||
|
@ -28,6 +28,11 @@ set -x
|
||||
|
||||
. "${1}"
|
||||
|
||||
# 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
|
||||
|
||||
# indirectly generates test/e2e/generated/bindata.go too
|
||||
make generated_files
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user