Disable go modules (#4583)
This commit is contained in:
parent
ba38153561
commit
189e742685
5 changed files with 13 additions and 2 deletions
|
|
@ -44,6 +44,8 @@ if [ "$missing" = true ]; then
|
|||
fi
|
||||
|
||||
export CGO_ENABLED=0
|
||||
# use vendor directory instead of go modules https://github.com/golang/go/wiki/Modules
|
||||
export GO111MODULE=off
|
||||
|
||||
release=cmd/plugin/release
|
||||
|
||||
|
|
|
|||
|
|
@ -29,6 +29,8 @@ fi
|
|||
|
||||
export CGO_ENABLED=1
|
||||
export GODEBUG=netdns=go+2
|
||||
# use vendor directory instead of go modules https://github.com/golang/go/wiki/Modules
|
||||
export GO111MODULE=off
|
||||
|
||||
rm -rf coverage.txt
|
||||
for d in $(go list "${PKG}/..." | grep -v vendor | grep -v '/test/e2e' | grep -v images); do
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ docker run \
|
|||
--rm \
|
||||
${DOCKER_OPTS} \
|
||||
-e GOCACHE="/go/src/${PKG}/.cache" \
|
||||
-e GO111MODULE=off \
|
||||
-v "${HOME}/.kube:${HOME}/.kube" \
|
||||
-v "${KUBE_ROOT}:/go/src/${PKG}" \
|
||||
-v "${KUBE_ROOT}/bin/${ARCH}:/go/bin/linux_${ARCH}" \
|
||||
|
|
|
|||
|
|
@ -31,6 +31,8 @@ fi
|
|||
# enabled to use host dns resolver
|
||||
export CGO_ENABLED=1
|
||||
export GODEBUG=netdns=go+2
|
||||
# use vendor directory instead of go modules https://github.com/golang/go/wiki/Modules
|
||||
export GO111MODULE=off
|
||||
|
||||
go test -v -race \
|
||||
$(go list "${PKG}/..." | grep -v vendor | grep -v '/test/e2e' | grep -v images | grep -v "docs/examples")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue