Repository navigation
Add self-update and uninstall commands in updateself 2.1.0 - #8
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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.