Skip to content

Commit

Permalink
Set version when building.
Browse files Browse the repository at this point in the history
Fixes #100
  • Loading branch information
greboid committed Apr 17, 2021
1 parent 5caed9f commit 4f7a97d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .goreleaser-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ builds:
gcflags:
- ./dontoptimizeme=-N
ldflags:
- -s -w
- -s -w -X main.version={{.Version}}
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ builds:
gcflags:
- ./dontoptimizeme=-N
ldflags:
- -s -w
- -s -w -X main.version={{.Version}}
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
Expand Down

0 comments on commit 4f7a97d

Please sign in to comment.