From 20fa0da1bbafd2711362778d9b4a21b973f42bcf Mon Sep 17 00:00:00 2001 From: decentral1se Date: Tue, 7 Sep 2021 09:23:09 +0200 Subject: [PATCH] build: pass ldflags in [ci skip] --- .goreleaser.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index c683db6a8..1d6737ef9 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -13,6 +13,9 @@ builds: dir: cmd/abra goos: - linux + ldflags: + - "-X 'main.Commit={{ .Commit }}'" + - "-X 'main.Version={{ .Version }}'" archives: - replacements: linux: Linux