Remove vendor directory and enable go modules
This commit is contained in:
parent
14acc186f0
commit
93bf818214
7 changed files with 13 additions and 32 deletions
|
|
@ -44,8 +44,6 @@ 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
|
||||
|
||||
|
|
|
|||
|
|
@ -27,11 +27,6 @@ if [ -z "${PKG}" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
export CGO_ENABLED=1
|
||||
export GODEBUG=netdns=cgo+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
|
||||
t=$(date +%s);
|
||||
|
|
|
|||
|
|
@ -56,7 +56,6 @@ docker run \
|
|||
--rm \
|
||||
${DOCKER_OPTS} \
|
||||
-e GOCACHE="/go/src/${PKG}/.cache" \
|
||||
-e GO111MODULE=off \
|
||||
-e DIND_TASKS=0 \
|
||||
-v "${HOME}/.kube:${HOME}/.kube" \
|
||||
-v "${KUBE_ROOT}:/go/src/${PKG}" \
|
||||
|
|
|
|||
|
|
@ -28,11 +28,5 @@ if [ -z "${PKG}" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# enabled to use host dns resolver
|
||||
export CGO_ENABLED=1
|
||||
export GODEBUG=netdns=cgo+2
|
||||
# use vendor directory instead of go modules https://github.com/golang/go/wiki/Modules
|
||||
export GO111MODULE=off
|
||||
|
||||
go test -v \
|
||||
$(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