From 52bdabc0aff2b654795ff5bf04bb1474f74ceee5 Mon Sep 17 00:00:00 2001 From: kaizhe Date: Tue, 28 Jan 2020 12:13:13 -0800 Subject: [PATCH 1/2] turn on GO111MODULE in build Signed-off-by: kaizhe --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 243a20a5..fd0ec266 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,7 @@ BIN_NAME=$(IMAGE_NAME)_$(GOOS)_$(GOARCH)_$(VERSION) all: build build: + export GO111MODULE=on CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) go build -a -o $(BUILD_DIR)/$(BIN_NAME) . image: build From 3980f174a0a659e3fbdf65c5b276fbaa0ba7c669 Mon Sep 17 00:00:00 2001 From: kaizhe Date: Fri, 31 Jan 2020 10:08:42 -0800 Subject: [PATCH 2/2] remove export Signed-off-by: kaizhe --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fd0ec266..618f3a44 100644 --- a/Makefile +++ b/Makefile @@ -13,8 +13,7 @@ BIN_NAME=$(IMAGE_NAME)_$(GOOS)_$(GOARCH)_$(VERSION) all: build build: - export GO111MODULE=on - CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) go build -a -o $(BUILD_DIR)/$(BIN_NAME) . + GO111MODULE=on CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) go build -a -o $(BUILD_DIR)/$(BIN_NAME) . image: build docker build --build-arg NAME=$(IMAGE_NAME) --build-arg VERSION=$(VERSION) --no-cache -t $(IMAGE_TAG) -f $(DOCKER_DIR)/Dockerfile.dev .