diff --git a/.goreleaser.yaml b/.goreleaser.yaml index a42002c5..3b988a91 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -10,7 +10,7 @@ before: builds: - env: - CGO_ENABLED=0 - ldflags: "-s -w -X main.version={{ .Version }}" + ldflags: "-s -w -X main.Version={{ .Version }}" main: . goos: - linux diff --git a/main.go b/main.go index 0cc4f47b..0bb2058e 100644 --- a/main.go +++ b/main.go @@ -36,6 +36,8 @@ import ( "github.com/spf13/cast" ) +var Version = "v1.21.4" + // The special value for VAULT_ENV which marks that the login token needs to be passed through to the application // which was acquired during the new Vault client creation const vaultLogin = "vault:login"