Skip to content

Commit

Permalink
revert name template field
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Wiesinger <[email protected]>
  • Loading branch information
mowies committed Nov 28, 2024
1 parent 81e2bb0 commit 25f450f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/goreleaser/internal/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func Archives(dist string) []config.Archive {
func Archive(dist string) config.Archive {
return config.Archive{
ID: dist,
NameTemplate: "{{ .Binary }}_{{ .Version }}_{{ .Target }}",
NameTemplate: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}",
Builds: []string{dist},
}
}
Expand Down
2 changes: 1 addition & 1 deletion distributions/otelcol-contrib/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ archives:
- id: otelcol-contrib
builds:
- otelcol-contrib
name_template: '{{ .Binary }}_{{ .Version }}_{{ .Target }}'
name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}'
nfpms:
- package_name: otelcol-contrib
contents:
Expand Down

0 comments on commit 25f450f

Please sign in to comment.