Skip to content

Commit

Permalink
Fix goreleaser.cf2pulumi name_template to strip spaces (#1022)
Browse files Browse the repository at this point in the history
The change in #1005 to
update .goreleaser.cf2pulumi accidentally introduced extra spaces into
the archive name. This change adds the obscure syntax that strips
whitespace around the template variables.

Fixes #1020

## Testing
Banded my head agains goreleaser until I got it to generate the correct
archive names locally.
  • Loading branch information
mjeffryes authored Aug 4, 2023
1 parent 3841c44 commit 2084067
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .goreleaser.cf2pulumi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ builds:
main: ./cmd/cf2pulumi/
archives:
- name_template: >-
{{ .Binary }}-
{{ .Tag }}-
{{ .Os }}-
{{- .Binary }}-
{{- .Tag }}-
{{- .Os }}-
{{- if eq .Arch "amd64" }}x64
{{- else if eq .Arch "386" }}x86
{{- else }}{{ .Arch }}{{ end }}
{{- else }}{{ .Arch }}{{ end -}}
format_overrides:
- goos: windows
format: zip
Expand Down

0 comments on commit 2084067

Please sign in to comment.