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

fix: remove VERSION from upgrade auxiliary file downloads - #26

Merged
lucasmodrich merged 1 commit into
mainfrom
fix-upgrade-version-file
Feb 21, 2026
Merged

lucasmodrich merged 1 commit into
mainfrom
fix-upgrade-version-file

Conversation

@lucasmodrich

Copy link
Copy Markdown
Owner

Summary

  • Remove "VERSION" from the auxiliary files list in UpgradeToLatest (internal/version/upgrade.go)

Root Cause

The upgrade command tries to download README.md, VERSION, and LICENSE from the tagged release. The repo has no VERSION file, producing a warning on every upgrade:

⚠️ Warning: failed to download VERSION: HTTP 404: https://raw.githubusercontent.com/lucasmodrich/git-worktree-manager/refs/tags/v2.2.3/VERSION

The version is already embedded in the binary via -ldflags -X main.version={{.Version}}, so a separate VERSION file is redundant.

Test plan

  • go test ./... passes (verified locally ✓)
  • gwtm upgrade completes without any warnings

🤖 Generated with Claude Code

The repo has no VERSION file, causing a 404 warning on every upgrade.
The version is already embedded in the binary via ldflags so downloading
a separate VERSION file serves no purpose.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lucasmodrich
lucasmodrich merged commit 01d1d71 into main Feb 21, 2026
2 checks passed
@lucasmodrich
lucasmodrich deleted the fix-upgrade-version-file branch February 21, 2026 03:46
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