Skip to content

Commit

Permalink
fix: version number not set at build time after adding major version …
Browse files Browse the repository at this point in the history
…suffix to package path
  • Loading branch information
achannarasappa committed Nov 12, 2024
1 parent 486fde0 commit f3623b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ builds:
post:
- upx "{{ .Path }}"
ldflags:
- -s -w -X 'github.com/achannarasappa/ticker/cmd.Version={{.Version}}'
- -s -w -X 'github.com/achannarasappa/ticker/v4/cmd.Version={{.Version}}'
- id: build-linux
main: ./main.go
env:
Expand All @@ -30,7 +30,7 @@ builds:
post:
- upx "{{ .Path }}"
ldflags:
- -s -w -X 'github.com/achannarasappa/ticker/cmd.Version={{.Version}}'
- -s -w -X 'github.com/achannarasappa/ticker/v4/cmd.Version={{.Version}}'
- id: build
main: ./main.go
env:
Expand All @@ -39,7 +39,7 @@ builds:
- windows
- darwin
ldflags:
- -s -w -X 'github.com/achannarasappa/ticker/cmd.Version={{.Version}}'
- -s -w -X 'github.com/achannarasappa/ticker/v4/cmd.Version={{.Version}}'
archives:
- id: release
name_template: >-
Expand Down

0 comments on commit f3623b5

Please sign in to comment.