Skip to content

fix: update binary migration to ~/.verda/bin#18

Merged
hi-lei merged 5 commits intomainfrom
fix/update-binary-migration
Apr 7, 2026
Merged

fix: update binary migration to ~/.verda/bin#18
hi-lei merged 5 commits intomainfrom
fix/update-binary-migration

Conversation

@hi-lei
Copy link
Copy Markdown
Collaborator

@hi-lei hi-lei commented Apr 7, 2026

Summary

  • When verda update runs from outside ~/.verda/bin/, it now also updates the old binary in-place so the user gets the new version immediately
  • Detects package-manager installs (Homebrew, apt/rpm/apk, Scoop, Snap) and skips the in-place overwrite — advises user to use their package manager instead
  • Only replaces in-place for manual installations (curl, direct download)

Test plan

  • Run verda update from /usr/local/bin/verda — should update both locations and show migration message
  • Symlink verda to /opt/homebrew/bin/ — should detect as Homebrew-managed and skip overwrite
  • Run from ~/.verda/bin/verda — no migration message

🤖 Generated with Claude Code

hi-lei and others added 5 commits April 7, 2026 17:37
When the running binary is outside ~/.verda/bin/ (e.g. /usr/local/bin),
the update command now also replaces the old binary so the user gets
the new version immediately regardless of PATH order. Prints clear
instructions to add ~/.verda/bin to PATH and remove the old binary.

This handles the migration path from pre-migration releases where
verda update installed in-place at the old location.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When the running binary is managed by Homebrew, apt, rpm, apk, or
Scoop, don't overwrite it — advise the user to use their package
manager instead. Only replace in-place for manual installations
(curl, direct download to /usr/local/bin).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Upgrade verdagostack to v1.1.3 which fixes wizard back-navigation:
- Esc in Loader-managed steps (SSH keys, storage, startup script) now
  goes back instead of cancelling the wizard
- Back navigates to the immediate prior step instead of skipping all
  completed steps

Add goreleaser configs for Homebrew tap, Scoop bucket, and Linux
packages (deb/rpm/apk).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add Homebrew, Scoop, and Linux package (deb/rpm/apk) install sections
to README. Fix OS image in the non-interactive example. Rename
install-test.sh to test-release-packages.sh for clarity.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add token config to goreleaser brews/scoops sections and pass
HOMEBREW_TAP_TOKEN secret in the release workflow so goreleaser
can push formula/manifest to the homebrew-tap repo.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@hi-lei hi-lei merged commit d0a3b8e into main Apr 7, 2026
13 checks passed
@hi-lei hi-lei deleted the fix/update-binary-migration branch April 7, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant