Disable go modules (#4583)

This commit is contained in:
Manuel Alejandro de Brito Fontes 2019-09-22 17:18:50 -03:00 committed by GitHub
parent ba38153561
commit 189e742685
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 2 deletions

View file

@ -58,11 +58,15 @@ GOOS = linux
MULTI_ARCH_IMAGE = $(REGISTRY)/nginx-ingress-controller-${ARCH}
# use vendor directory instead of go modules https://github.com/golang/go/wiki/Modules
GO111MODULE=off
export ARCH
export TAG
export PKG
export GOARCH
export GOOS
export GO111MODULE
export GIT_COMMIT
export GOBUILD_FLAGS
export REPO_INFO
@ -202,9 +206,9 @@ check_dead_links:
.PHONY: dep-ensure
dep-ensure:
GO111MODULE=on go mod tidy -v
go mod tidy -v
find vendor -name '*_test.go' -delete
GO111MODULE=on go mod vendor
go mod vendor
.PHONY: dev-env
dev-env: