From 059eb64c9b08efa276786e777fe90b6b9666af53 Mon Sep 17 00:00:00 2001 From: LiHui Date: Wed, 21 Jul 2021 15:35:32 +0800 Subject: [PATCH] go build with vendor Signed-off-by: LiHui --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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. #