From 487fc43f104251af3de196e4daf86feaefb92b24 Mon Sep 17 00:00:00 2001 From: Forest-L Date: Thu, 14 Jan 2021 18:46:18 +0800 Subject: [PATCH 1/2] update Makefile Signed-off-by: Forest-L --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 31da8e9..09980e6 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,13 @@ .PHONY: ke BINARY="ke" - +GOBIN=$(shell go env GOPATH)/bin fmt: gofmt -w ./pkg ./cmd ke: - CGO_ENABLED=0 go build -o ${BINARY} + GO111MODULE=on GOPROXY=https://proxy.golang.org CGO_ENABLED=0 go get -u github.com/gobuffalo/packr/v2/packr2 + $(GOBIN)/packr2 build -a -o ${BINARY} main.go # install kubeye install: ke @@ -23,4 +24,4 @@ install-goreleaser: curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh build-multiarch: install-goreleaser - ./bin/goreleaser release --snapshot --skip-publish --rm-dist \ No newline at end of file + ./bin/goreleaser release --snapshot --skip-publish --rm-dist From ffce446d3d41a73de66e05bc0ba76a5b35d888e4 Mon Sep 17 00:00:00 2001 From: Forest-L Date: Thu, 14 Jan 2021 18:52:48 +0800 Subject: [PATCH 2/2] update Makefile Signed-off-by: Forest-L --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 09980e6..53a5601 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,8 @@ fmt: gofmt -w ./pkg ./cmd ke: - GO111MODULE=on GOPROXY=https://proxy.golang.org CGO_ENABLED=0 go get -u github.com/gobuffalo/packr/v2/packr2 - $(GOBIN)/packr2 build -a -o ${BINARY} main.go + GO111MODULE=on GOPROXY=https://proxy.golang.org CGO_ENABLED=0 go get -u github.com/gobuffalo/packr/v2/packr2 + $(GOBIN)/packr2 build -a -o ${BINARY} main.go # install kubeye install: ke