From 6b85dc814d41cfb0118f393ae98bf21cd22a119d Mon Sep 17 00:00:00 2001 From: Joris Coenen Date: Tue, 3 Sep 2019 13:43:59 +0200 Subject: [PATCH] Fix version and commit in CLI not being set --- .goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 02dbf817..b0c9d002 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -30,7 +30,7 @@ builds: goarch: arm main: ./cmd/secrethub/main.go ldflags: - - -s -w -X main.commit={{ .ShortCommit }} -X main.version={{ .Version }} + - -s -w -X "github.com/secrethub/secrethub-cli/internals/secrethub.Commit={{ .ShortCommit }}" -X "github.com/secrethub/secrethub-cli/internals/secrethub.Version={{ .Version }}" flags: - -tags=production