Skip to content

feat(self): migrate to native selfupdate-go v0.2.0 updates - #85

Merged
bfirestone merged 4 commits into
mainfrom
codex/native-selfupdate
Sep 18, 2026
Merged

bfirestone merged 4 commits into
mainfrom
codex/native-selfupdate

Conversation

@bfirestone

Copy link
Copy Markdown
Contributor

Arc self-updates currently invoke a shell installer. Migrate to selfupdate-go v0.2.0 and its native ArchiveInstaller, which verifies release checksums and atomically replaces the executable.

Preserve channel behavior and database backups, stop a running server only after download verification, and restart it through the installed binary. Recover the server after failed or cancelled updates. Reduce the bootstrap script from 454 to 143 lines while retaining --force/--tag compatibility for older Arc updaters, and document the new behavior.

Validation:

  • TMPDIR=/var/tmp task test — full race and coverage suite passed. /var/tmp avoids an existing /tmp/.git that affects repository-discovery tests.
  • task lint:go and task build:quick passed.
  • bash -n scripts/install.sh and shellcheck scripts/install.sh passed.
  • python3 scripts/install_test.py — all seven isolated installer tests passed.
  • Native archive tests cover checksum rejection and symlink targets; lifecycle tests cover server state, stop/commit failures, cancellation, and restart failures.

@bfirestone
bfirestone merged commit 08d9bbb into main Sep 18, 2026
4 checks passed
@bfirestone
bfirestone deleted the codex/native-selfupdate branch September 18, 2026 22:45
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