feat(update): update check at startup with prompt to update #29
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/12-update-check"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The startup update check for #12. When a newer release exists, lazyforge asks
Update now? [Y/n]before the UI opens. Yes downloads, verifies and swaps the binary, then restarts into the new version. No starts the current one, and the next launch asks again (PM decision, #13).Changes
internal/update(ADR 0009):golang.org/x/mod/semver, so dev and prerelease builds are never offered.checksums.txt, and swaps by rename. The old binary stays aslazyforge.old, and a failed restart rolls back to it.cmd/lazyforge:--no-update-check,LAZYFORGE_NO_UPDATE_CHECK=1, configupdate.check = false, or when stdin isn't a terminal.lazyforge.oldis cleaned up on every start.Test plan
make checkexit 0 after syncing develop.Rulings
Closes #12
🤖 Generated with Claude Code