Remove vendor directory and enable go modules

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-06-23 20:55:08 -04:00
parent 14acc186f0
commit 93bf818214
7 changed files with 13 additions and 32 deletions

View file

@ -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

View file

@ -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);

View file

@ -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}" \

View file

@ -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")