diff --git a/Makefile b/Makefile index 371cefa7fd9..70cd5004420 100644 --- a/Makefile +++ b/Makefile @@ -142,10 +142,9 @@ vendor-in-container: .PHONY: vendor vendor: - export GO111MODULE=on \ - $(GO) mod vendor && \ - $(GO) mod tidy && \ - $(GO) mod verify + GO111MODULE=on $(GO) mod vendor + GO111MODULE=on $(GO) mod tidy + GO111MODULE=on $(GO) mod verify .PHONY: lint lint: install.tools diff --git a/tests/tools/Makefile b/tests/tools/Makefile index 1dfc44d9562..329cd9c3ead 100644 --- a/tests/tools/Makefile +++ b/tests/tools/Makefile @@ -12,10 +12,9 @@ all: $(BUILDDIR) .PHONY: vendor vendor: - export GO111MODULE=on \ - $(GO) mod tidy && \ - $(GO) mod vendor && \ - $(GO) mod verify + GO111MODULE=on $(GO) mod tidy + GO111MODULE=on $(GO) mod vendor + GO111MODULE=on $(GO) mod verify define go-build $(shell cd `pwd` && $(GO_BUILD) -o $(BUILDDIR)/$(shell basename $(1)) $(1))