From 052b9c07f39d17a0e799490f6b798f7aeb399bb3 Mon Sep 17 00:00:00 2001 From: Mattias Wadman Date: Sun, 19 Sep 2021 11:51:27 +0200 Subject: [PATCH] make: Build with -s -w same as goreleaser --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b6dc37ef..975ce9eb 100644 --- a/Makefile +++ b/Makefile @@ -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