chore: Build improvements (#1079)

This commit is contained in:
Ludovic Fernandez 2020-03-08 22:19:12 +01:00 committed by GitHub
commit d64d33a7f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 13 deletions

View file

@ -1,6 +1,7 @@
.PHONY: clean checks test build image e2e fmt
export GO111MODULE=on
export CGO_ENABLED=0
SRCS = $(shell git ls-files '*.go' | grep -v '^vendor/')
@ -21,7 +22,7 @@ clean:
build: clean
@echo Version: $(VERSION)
go build -v -ldflags '-X "main.version=${VERSION}"' -o ${BIN_OUTPUT} ${MAIN_DIRECTORY}
go build -v -trimpath -ldflags '-X "main.version=${VERSION}"' -o ${BIN_OUTPUT} ${MAIN_DIRECTORY}
image:
@echo Version: $(VERSION)