-
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
specify required components in rust-toolchain file #2350
Comments
It seem that |
I can confirm that currently One option, however, could be to simply say that if the first line has any of |
I am prepared to mentor someone through working out how to do this. Find me here or on the |
I am interested in working on this :) |
@ebroto that's wonderful news. If you want to chat about it, please prod me on discord, otherwise feel free to outline a plan here first. I think we need to hash out how this will work before it's sensible to attempt any kind of implementation. |
As a quite drastic extension to this (that I think is probably out of scope, but maybe worth discussing); it can be useful to have different components coming from different toolchains. I noticed this in the context of |
|
Since the new format doesn't have to worry about backwards compatibility, we can make things really easy on rustup. How about the following: [rustup]
toolchain = "1.44.0"
components = ["rustfmt", ...] If it starts with the literal line |
I would like at minimum for there to be a moderately comprehensible error, and "[rustup]" is an invalid channel name so makes it pretty clear something unexpected is going on if someone has an old rustup and encounters a new |
Since there was no clear consensus in discord about having a Requiring the section header to be in the first line would help to have a clear error when the file is intended to be TOML but there is a syntax error (e.g. you forget to put the channel name inside quotes) as there would be no fallback to the old format, but on the other hand it would not work if you have a simple comment in the first line. This makes me think that supporting two files could be more maintainable in the end, and probably clearer for the users. Thoughts? |
I want a reasonable clear error for the user of old rustup encountering a new |
I wanted to pin clippy to specific nightly version (which will be updated every time the subtree of the rustc repo is synced into the clippy standalone repo) to make sure a
cargo build
will always be able to build clippy.I wanted to use a
rust-toolchain
file but it turns out,rustup
only downloads default components for the specified version.Clippy needs the
rustc-dev
component but there is no way to tell rustup to install that viarust-toolchain
rendering it pretty useless for that use case. :(It would be useful to be able to specify required components in the roolchain file.
The text was updated successfully, but these errors were encountered: