Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

fix: use {{ .Binary }} in archive name_template to produce gwtm_* artifacts - #25

Merged
lucasmodrich merged 1 commit into
mainfrom
fix-artifact-name
Feb 21, 2026
Merged

lucasmodrich merged 1 commit into
mainfrom
fix-artifact-name

Conversation

@lucasmodrich

Copy link
Copy Markdown
Owner

Summary

  • Replace {{ .ProjectName }} with {{ .Binary }} in the archives.name_template in .goreleaser.yml

Root Cause

{{ .ProjectName }} resolves to the GitHub repository name (git-worktree-manager), producing artifacts like:

git-worktree-manager_Windows_x86_64.exe  ❌

{{ .Binary }} resolves to the binary: gwtm value in the builds config, producing:

gwtm_Windows_x86_64.exe  ✅

The upgrade command constructs download URLs using gwtm_<OS>_<Arch> (see internal/version/upgrade.go:102), so the mismatch was silently breaking self-upgrade for all users.

Test plan

  • goreleaser check passes (verified locally ✓)
  • Release artifacts are named gwtm_* (e.g. gwtm_Windows_x86_64.exe, gwtm_Linux_x86_64)
  • gwtm upgrade successfully downloads and installs the new binary

🤖 Generated with Claude Code

…ifacts

{{ .ProjectName }} resolves to the repo name (git-worktree-manager), producing
git-worktree-manager_Windows_x86_64.exe instead of gwtm_Windows_x86_64.exe.
{{ .Binary }} uses the binary: gwtm setting, matching what the upgrade command
expects when constructing download URLs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lucasmodrich
lucasmodrich merged commit 02918ec into main Feb 21, 2026
2 checks passed
@lucasmodrich
lucasmodrich deleted the fix-artifact-name branch February 21, 2026 03:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant