From 7bf4f1208b65362cfec3b4038a348b48d295af97 Mon Sep 17 00:00:00 2001 From: Fabian Sylvester Date: Mon, 30 Sep 2024 23:31:48 +0000 Subject: [PATCH] Fix version (#1) * use correct build time injection after refactor --- .goreleaser.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 5ce0b30..6a6579b 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -22,9 +22,9 @@ builds: - -trimpath ldflags: - -s -w - - -X main.version=v{{.Version}} - - -X main.commit={{.Commit}} - - -X main.date={{.Date}} + - -X github.com/xx4h/hctl/cmd.version=v{{.Version}} + - -X github.com/xx4h/hctl/cmd.commit={{.Commit}} + - -X github.com/xx4h/hctl/cmd.date={{.Date}} archives: - format: tar.gz