From 30d47a3b3ca32dd0f924e6ec690b720abaa295e8 Mon Sep 17 00:00:00 2001 From: Bence Csati Date: Tue, 25 Jun 2024 11:36:31 +0200 Subject: [PATCH] chore: add version Signed-off-by: Bence Csati --- .goreleaser.yaml | 2 +- main.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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"