diff --git a/.goreleaser.yml b/.goreleaser.yml index 2452e0f..552cbb1 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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 - @@ -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 diff --git a/README.md b/README.md index c7d7685..2cfe159 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ packer { required_plugins { goss = { - version = "3.2.0" + version = "~> 3" source = "github.com/YaleUniversity/goss" } }