From 5573cbb4f2c6bd390fbc4adc1e630f38dc0d0c01 Mon Sep 17 00:00:00 2001 From: Dan Potepa Date: Fri, 30 Dec 2022 18:38:12 +0000 Subject: [PATCH] better version --- .goreleaser.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index ec206f8..c49e2db 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -14,6 +14,9 @@ builds: - darwin goarch: - amd64 + ldflags: + -X main.commit={{ slice .Commit 0 8 }} + -X main.version={{ .Version }} dockers: - goos: linux goarch: amd64