confusing ui: `rustup default [...]` ... `unchanged` is unclear
Open
Nobody has claimed this yet.
E-mentor
enhancement
help wanted
- Dominant language
- Rust
- Stars
- 7k
- Forks
- 1.1k
- Avg merge
- 22h 40m
- Merged PRs (30d)
- 46
Description
Problem
When running rustup default to change the default toolchain, rustup reports that nothing has changed even if something changes.
Steps
- Run
rustup defaultto list the current default toolchain - Run
rustup default [new toolchain]to update it - Run
rustup defaultto print the current toolchain
$ rustup default
stable-x86_64-pc-windows-msvc (default)
$ rustup default stable-x86_64-pc-windows-gnu
info: using existing install for 'stable-x86_64-pc-windows-gnu'
info: default toolchain set to 'stable-x86_64-pc-windows-gnu'
stable-x86_64-pc-windows-gnu unchanged - rustc 1.42.0 (b8cedc004 2020-03-09)
$ rustup default
stable-x86_64-pc-windows-gnu (default)
$ rustup default stable-x86_64-pc-windows-msvc
info: using existing install for 'stable-x86_64-pc-windows-msvc'
info: default toolchain set to 'stable-x86_64-pc-windows-msvc'
stable-x86_64-pc-windows-msvc unchanged - rustc 1.42.0 (b8cedc004 2020-03-09)
$ rustup default
stable-x86_64-pc-windows-msvc (default)
$ rustup default stable-x86_64-pc-windows-gnu
info: using existing install for 'stable-x86_64-pc-windows-gnu'
info: default toolchain set to 'stable-x86_64-pc-windows-gnu'
stable-x86_64-pc-windows-gnu unchanged - rustc 1.42.0 (b8cedc004 2020-03-09)
$
Notes
Output of rustup --version:
$ rustup --version
rustup 1.21.1 (7832b2ebe 2019-12-20)
$
Output of rustup show:
$ rustup show
Default host: x86_64-pc-windows-gnu
rustup home: C:\Users\smcro\.rustup
installed toolchains
--------------------
stable-x86_64-pc-windows-gnu (default)
stable-x86_64-pc-windows-msvc
nightly-x86_64-pc-windows-msvc
active toolchain
----------------
stable-x86_64-pc-windows-gnu (default)
rustc 1.42.0 (b8cedc004 2020-03-09)
$ ```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the rustup default command and trace how its status output is generated, using the reproduced Windows command sequence as the behavioral baseline. Done means the output clearly distinguishes changing the default toolchain from leaving the installed toolchain unchanged, with coverage for the shown transitions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100