-
Notifications
You must be signed in to change notification settings - Fork 888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename ~/.multirust to ~/.rustup #830
Conversation
rustup.sh is already modified to use |
☔ The latest upstream changes (presumably #812) made this pull request unmergeable. Please resolve the merge conflicts. |
r+ from me Thanks for writing it as you did, this is some crazy logic to follow, but all makes sense to me! (and was easy to read) |
This will silently do the upgrade when rustup is run, and uses several defenses to avoid breaking due to interactions with rustup.sh.
Rebased. |
@bors r+ |
📌 Commit a07ee8c has been approved by |
Rename ~/.multirust to ~/.rustup This renames the ~/.multirust directory to ~/.rustup. The logic for the upgrade is in `do_rustup_home_upgrade`, and is defensive against errors. It amounts to moving an unrecognized `~/.rustup` folder to `~/.rustup.sh`, then moving a `~/.multirust` dir to `~/.rustup`. If the upgrade fails then rustup will silently continue using `~/.multirust`, though this code path doesn't have tests, and is unlikely to happen... After the upgrade, or during initial install this also sets up `~/.multirust` as a symlink to `~/.rustup` in case there are tools depending on it. This is intended to be temporary, to avoid breakage while getting it done quickly. This needs some more manual testing before deployment but is ready for review. r? @alexcrichton
💥 Test timed out |
@bors: retry |
Rename ~/.multirust to ~/.rustup This renames the ~/.multirust directory to ~/.rustup. The logic for the upgrade is in `do_rustup_home_upgrade`, and is defensive against errors. It amounts to moving an unrecognized `~/.rustup` folder to `~/.rustup.sh`, then moving a `~/.multirust` dir to `~/.rustup`. If the upgrade fails then rustup will silently continue using `~/.multirust`, though this code path doesn't have tests, and is unlikely to happen... After the upgrade, or during initial install this also sets up `~/.multirust` as a symlink to `~/.rustup` in case there are tools depending on it. This is intended to be temporary, to avoid breakage while getting it done quickly. This needs some more manual testing before deployment but is ready for review. r? @alexcrichton
☀️ Test successful - status-appveyor, status-travis |
This renames the ~/.multirust directory to ~/.rustup. The logic for the upgrade is in
do_rustup_home_upgrade
, and is defensive against errors. It amounts to moving an unrecognized~/.rustup
folder to~/.rustup.sh
, then moving a~/.multirust
dir to~/.rustup
.If the upgrade fails then rustup will silently continue using
~/.multirust
, though this code path doesn't have tests, and is unlikely to happen...After the upgrade, or during initial install this also sets up
~/.multirust
as a symlink to~/.rustup
in case there are tools depending on it. This is intended to be temporary, to avoid breakage while getting it done quickly.This needs some more manual testing before deployment but is ready for review.
r? @alexcrichton