Skip to content

Commit

Permalink
Fix passing release version to ldflags (#91)
Browse files Browse the repository at this point in the history
* Fix passing release version to ldflags

* fix(plugin): update docs and remove invalid build arg

---------

Co-authored-by: Tom Morelly <tommorelly@gmail.com>
  • Loading branch information
F21 and FalcoSuessgott committed Jun 5, 2024
1 parent f7d8a23 commit 4bd613d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ builds:
flags:
- -trimpath
ldflags:
- '-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= '
- '-s -w -X main.Version={{.Version}}'
targets:
- linux_amd64
-
Expand All @@ -22,7 +22,7 @@ builds:
flags:
- -trimpath
ldflags:
- '-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= '
- '-s -w -X main.Version={{.Version}}'
binary: "{{ .ProjectName }}_v{{ .Version }}_{{ .Env.PACKER_PROTOCOL_VERSION }}_{{ .Os }}_{{ .Arch }}"
goos:
- freebsd
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ packer {
required_plugins {
goss = {
version = "3.2.0"
version = "~> 3"
source = "github.com/YaleUniversity/goss"
}
}
Expand Down

0 comments on commit 4bd613d

Please sign in to comment.