Repository navigation
Conversation
This was referenced May 27, 2026
Closed
|
any chance to merge it? |
Contributor
|
This pull request has been automatically marked as stale due to 90 days of inactivity. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. Your contribution is very much appreciated — we're sorry we haven't been able to review it yet. |
Contributor
|
Closing this pull request after a prolonged period of inactivity. If this is still relevant, please ask for it to be reopened. Thank you! |
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.
Summary
Adds
rtk update.For direct binary installs, RTK now updates itself from GitHub Releases:
rtk updateinstalls the latest releasertk update --checkchecks without changing anythingrtk update --tag v0.39.0installs a specific tagrtk update --forcereinstalls even when versions matchrtk update --yesskips the confirmation promptThe updater verifies
checksums.txt, rejects unsafe archive entries, and replaces the current binary through a temp file in the same directory.Managed installs stay managed. If RTK detects Homebrew, Cargo, or a source-tree binary, it prints the right upgrade command instead of overwriting files it should not own.
Why
Users keep asking for this. See #1763 and #995.
Today the answer is basically "reinstall it yourself". That works, but it is not much of an answer after you have shipped a CLI people use every day.
This keeps the boring path boring:
No shell installer pipeline. No guessing which file to replace. No writing over Homebrew or Cargo installs.
Related Work
Related to #614.
That PR adds an update command too. Main difference: this implementation keeps direct binary updates inside Rust and verifies the release artifact before replacing the executable.
Homebrew and Cargo remain package-manager paths here. I think that boundary matters. I have debugged enough broken self-updaters to prefer boring ownership rules.
Docs
Updated:
README.mdINSTALL.mdCHANGELOG.mdis not edited manually because release-please owns it.Testing
cargo fmt --all --check cargo clippy --all-targets cargo testcargo clippy --all-targetsexits successfully. It still reports existing warnings outside this change.