-
Notifications
You must be signed in to change notification settings - Fork 892
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
rustup toolchain list --verbose should list why each toolchain was installed #3919
Comments
@lolbinarycat Thanks for filing this issue! I think this feature request is quite valid. Indeed, you'd like to have something like this as well especially when you're working with many different projects each with its own However since this is doesn't look like a trivial change, correctly implementing this might require some more investigation... Please bear with us as |
Yeah, I'm honestly not sure the implementation complexity of this is worth it. At the very least (a) I don't think it should be a priority for us and (b) this needs a good design to decide where this state gets stored. |
Just to add some context: I installed Lean 4 with |
Implementation-wise a basic idea would be placing an If the file is missing or is empty, we consider the toolchain to be manually installed. Finally, a toolchain can be pruned if it's implicitly installed and all paths in its PS: This is neither saying I'm implementing it, nor meaning it's going to be implemented this way. |
you would need to actually parse the rust-toolchain files, since it might have changed to reference a different toolchain (this is extremely common for things like clippy) |
Problem you are trying to solve
a full rust toolchain is quite large, around 2GB. this puts the user in a tricky situation, where they don't want to have a bunch of extra toolchains installed, but they also don't want to accidentally delete a toolchain used by a project the use a lot, and then have to redownload it over slow wifi
Solution you'd like
either as part of the
--verbose
flag, or as a new flag (likelist --why
), rustup would display the reason that a specific toolchain was installed. if it was installed because of arust-toolchain
file, the path to that file is listed. toolchains installed before this update was made would have their reason listed as "unknown"Notes
a possible improvment would be for rustup to track what rust-toolchain files reference a particular toolchain, although that would add significant complexity
The text was updated successfully, but these errors were encountered: