You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bootstrap in rust-lang/rust wants to have a version of rustfmt that's different than the bootstrap compiler toolchain. Right now, to manage it using rustup, we'd have to install a full duplicate toolchain with rustup install --profile minimal. It would be nice to only install the rustfmt component and nothing else.
Solution you'd like
@kinnison and @rbtcollins on Discord agreed to rustup toolchain install --profile empty, which would mean "register this toolchain with rustup" (and I guess download the manifest?), "but don't install any components". That would allow running rustup toolchain install nightly-2022-02-23 --profile empty --component rustfmt in bootstrap.
To progress this we need to know if rustup will be okay with a manifest-only toolchain. If so then this isn't too awful to implement. It'd also behove us to decide if we want a --force for this or not.
After brief discussion on Discord, we think --profile empty might be better since it's more explicitly that there won't be things there. I'll edit the title and first post to reflect that, so that we don't have --profile bare front-and-center if someone wants to help.
kinnison
changed the title
Add support for install --profile bare
Add support for install --profile emptyMar 22, 2022
Problem you are trying to solve
Bootstrap in rust-lang/rust wants to have a version of rustfmt that's different than the bootstrap compiler toolchain. Right now, to manage it using rustup, we'd have to install a full duplicate toolchain with
rustup install --profile minimal
. It would be nice to only install the rustfmt component and nothing else.Solution you'd like
@kinnison and @rbtcollins on Discord agreed to
rustup toolchain install --profile empty
, which would mean "register this toolchain with rustup" (and I guess download the manifest?), "but don't install any components". That would allow runningrustup toolchain install nightly-2022-02-23 --profile empty --component rustfmt
in bootstrap.Notes
cc rust-lang/rust#95136
The text was updated successfully, but these errors were encountered: