Just build.

This works correctly on Linux.

I'm unclear why the environment variables need to be specified at all.
mine
Anand Kumria 2019-02-19 17:36:47 +01:00
parent 50455ebef1
commit 6781743e51
1 changed files with 2 additions and 2 deletions

View File

@ -8,8 +8,8 @@ cover: ## Run test coverage suite
@go test ./... --coverprofile=cov.out
@go tool cover --html=cov.out
osx: ## Builds OSX CLI
@env GOOS=darwin GOARCH=amd64 go build \
build: ## Builds the CLI
@go build \
-ldflags "-w -X ${PACKAGE}/cmd.Version=${VERSION}" \
-a -tags netgo -o execs/${NAME} *.go