summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.goreleaser.yaml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.goreleaser.yaml b/.goreleaser.yaml
index ddecc2d..86fda49 100644
--- a/.goreleaser.yaml
+++ b/.goreleaser.yaml
@@ -12,6 +12,7 @@ before:
builds:
- main:
env: [CGO_ENABLED=0]
+ ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
goos: [linux, windows, darwin]
archives:
- format: tar.gz