From c497f539725ee2e6726b898c5492336a8e8afdf9 Mon Sep 17 00:00:00 2001 From: Adam Martin Date: Thu, 30 Nov 2023 13:39:23 -0500 Subject: [PATCH] fix hauler version display Signed-off-by: Adam Martin --- .goreleaser.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index e4def443..9914e778 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -5,7 +5,7 @@ before: - go mod download env: - - vpkg=github.com/rancherfederal/hauler/pkg/version + - vpkg=github.com/rancherfederal/hauler/internal/version builds: - main: cmd/hauler/main.go @@ -17,7 +17,7 @@ builds: - amd64 - arm64 ldflags: - - -s -w -X {{ .Env.vpkg }}.GitVersion={{ .Version }} -X {{ .Env.vpkg }}.commit={{ .ShortCommit }} -X {{ .Env.vpkg }}.buildDate={{ .Date }} + - -s -w -X {{ .Env.vpkg }}.gitVersion={{ .Version }} -X {{ .Env.vpkg }}.gitCommit={{ .ShortCommit }} -X {{ .Env.vpkg }}.gitTreeState={{if .IsGitDirty}}dirty{{else}}clean{{end}} -X {{ .Env.vpkg }}.buildDate={{ .Date }} env: - CGO_ENABLED=0