Skip to content

Add self-update and uninstall commands in updateself 2.1.0 - #8

Merged
spaniakos merged 4 commits into
masterfrom
feature/2.1-self-management
Oct 16, 2026
Merged

spaniakos merged 4 commits into
masterfrom
feature/2.1-self-management

Conversation

@spaniakos

@spaniakos spaniakos commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

Installed copies gain --check-self-update, --self-update and --uninstall. Mutating lifecycle actions ask by default, accept explicit --yes, and support an offline/no-write --dry-run independently from ordinary component updates.

Ownership detection routes native Linux/BSD packages, Homebrew, MacPorts and imperative Nix profiles to their manager. Git/archive and macOS pkg installs download stable GitHub release assets, verify SHA256SUMS and verify provenance when gh is present. Modified managed files prevent Git/macOS self-update. Git updates preserve the prefix/shortcut and restore previous managed files after installer/version-check failure; interrupted/failed recovery retains backups. Git/macOS uninstalls preserve modified files and run from a private helper while removing the executable. macOS receipts are forgotten only after complete removal.

Native managers apply their own file/configuration policy and use configured repositories. Until an updateself channel exists, newer native release packages require manual installation. Declarative/ambiguous Nix installs are refused; modern imperative profile detection needs Python 3. Live network self-update is not claimed tested: downloads, verification failures, installer routing and rollback use offline fixtures. GitHub checksums are not independent publisher authentication; gh provenance is additionally enforced when available. macOS packages remain unsigned.

Prepare version/help/man/completions, dated changelog and release notes for 2.1.0, with a Self-Management Wiki guide. Embed the source Bash module so the installed executable stays standalone and Bash 3.2 compatible. Canonical project/release/provenance links now use the renamed spaniakos/updateself repository.

Validation:

  • All 17 hosted CI jobs passed: https://github.com/spaniakos/updateself/actions/runs/38856745339
  • Wiki preview passed: https://github.com/spaniakos/updateself/actions/runs/38856745351
  • 68 tests pass on Linux, Intel macOS and Apple Silicon macOS; locally on modern Bash and Bash 3.2.
  • Tests cover dry-run, default confirmation, alias removal, modified files, symlink directories, downgrade rejection, verified archives, rollback, bad checksums/provenance, macOS pkg routing/receipt removal, native ownership formats, Homebrew and Nix.
  • Native Linux/macOS/BSD jobs install their packages, preview both lifecycle actions, and remove updateself using the actual --uninstall --yes command. All passed; Nix build and release-preview/checksums passed.
  • ShellCheck, actionlint, syntax/version/pin/embed consistency checks and 17 Wiki files validate.

Release date: 2026-10-16. After review/merge and green master CI, use Actions → Release packages → create-draft → v2.1.0. No tag or release publication is performed by this PR. Existing 2.0.0 users need one manual upgrade to the 2.1.0 package/archive before these flags are available.

@spaniakos spaniakos self-assigned this Oct 16, 2026
@spaniakos
spaniakos merged commit ae55849 into master Oct 16, 2026
19 checks passed
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