Skip to content

Commit 0784d52

Browse files
committed
fix: set universal_binaries name_template to match build binary name
## What Set the name_template field on universal_binaries in .goreleaser.yaml to "pvtr" so the macOS universal binary matches the configured build binary name. ## Why The universal_binaries name_template defaults to {{ .ProjectName }}, which resolves to the repo name "privateer". With replace: true, this overwrites the correctly named "pvtr" binary with one named "privateer", causing brew install to fail with ENOENT since the formula expects "pvtr". ## Notes - A new release must be cut after this merges for the homebrew formula to work - The archive filenames will still use "privateer" (e.g., privateer_Darwin_all.tar.gz) since ProjectName is unchanged — only the binary inside is affected Signed-off-by: jmeridth <jmeridth@gmail.com>
1 parent d6147b7 commit 0784d52

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.goreleaser.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,6 @@ release:
6969

7070
universal_binaries:
7171
- replace: true
72+
# name_template defaults to {{ .ProjectName }} (repo name: "privateer"),
73+
# which overrides the build binary name when replace: true
74+
name_template: pvtr

0 commit comments

Comments
 (0)