Skip to content

Commit

Permalink
Update goreleaser config to set the right vars for version/build info.
Browse files Browse the repository at this point in the history
  • Loading branch information
G3 authored and G3 committed Sep 13, 2024
1 parent 26eb05a commit ba42175
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ba42175

Please sign in to comment.