Skip to content

Commit

Permalink
turn on GO111MODULE in build (hashicorp#61)
Browse files Browse the repository at this point in the history
* turn on GO111MODULE in build

Signed-off-by: kaizhe <derek0405@gmail.com>

* remove export

Signed-off-by: kaizhe <derek0405@gmail.com>
  • Loading branch information
Kaizhe authored Feb 14, 2020
1 parent 67d6c77 commit 22e56b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ BIN_NAME=$(IMAGE_NAME)_$(GOOS)_$(GOARCH)_$(VERSION)
all: build

build:
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 .
Expand Down

0 comments on commit 22e56b9

Please sign in to comment.