diff --git a/Makefile b/Makefile index 401e49b80..8b159fd73 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,10 @@ GOBIN=$(shell go env GOBIN) endif OUTPUT_DIR=bin -GOFLAGS=-mod=vendor +ifeq (${GOFLAGS},) + # go build with vendor by default. + export GOFLAGS=-mod=vendor +endif define ALL_HELP_INFO # Build code. #