Closed
Description
x setup
takes a short list of paths determined at runtime. Currently, it's special-cased in bootstrap rather than going through Step::should_run
. But there's no need to special-case it - it can do the run time check in should_run
instead, there's no sandbox. Switching it to should_run
also has the advantage of automatically fixing x setup -h -v
.
The list of paths is "all toml files in src/bootstrap/defaults
".
Mentoring instructions:
- Add
impl Step for Profile
insrc/bootstrap/setup.rs
- Remove the special-casing for
Subcommand::Setup
inBuilder::new
andBuilder::get_step_descriptions
.
cc @aswild - are you interested in tackling this after #96003?
@rustbot label +A-rustbuild +E-easy +E-medium
cc #96003 (comment)