From ba421752ca63e06fb3daca428abc735a4edf7ef3 Mon Sep 17 00:00:00 2001 From: G3 Date: Fri, 13 Sep 2024 12:27:02 -0700 Subject: [PATCH] Update goreleaser config to set the right vars for version/build info. --- .goreleaser.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index bba20e2..ff5cc27 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -17,9 +17,9 @@ builds: - -s -w # Include version and commit information (uses commit date for # reproducible builds). - - -X main.version={{.Version}} - - -X main.commit={{.Commit}} - - -X main.date={{.CommitDate}} + - -X main.pkgVersion={{.Version}} + - -X main.pkgCommit={{.ShortCommit}} + - -X main.pkgTimestamp={{.CommitDate}} # Use the commit timestamp as the binary's modified timestamp. mod_timestamp: '{{ .CommitTimestamp }}' # Set to true only for library projects.