Skip to content

Commit

Permalink
make: Build with -s -w same as goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
wader committed Sep 19, 2021
1 parent 90c19c6 commit 052b9c0
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 @@ -3,7 +3,7 @@ all: test
.PHONY: fq
fq: VERSION=$(shell git describe --all --long --dirty 2>/dev/null || echo nogit)
fq:
CGO_ENABLED=0 go build -ldflags "-X main.version=${VERSION}" -trimpath -o fq .
CGO_ENABLED=0 go build -ldflags "-s -w -X main.version=${VERSION}" -trimpath -o fq .

.PHONY: test
# figure out all go pakges with test files
Expand Down

0 comments on commit 052b9c0

Please sign in to comment.