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 in src/bootstrap/setup.rs
- Remove the special-casing for
Subcommand::Setup in Builder::new and Builder::get_step_descriptions.
cc @aswild - are you interested in tackling this after #96003?
@rustbot label +A-rustbuild +E-easy +E-medium
cc #96003 (comment)
x setuptakes a short list of paths determined at runtime. Currently, it's special-cased in bootstrap rather than going throughStep::should_run. But there's no need to special-case it - it can do the run time check inshould_runinstead, there's no sandbox. Switching it toshould_runalso has the advantage of automatically fixingx setup -h -v.The list of paths is "all toml files in
src/bootstrap/defaults".Mentoring instructions:
impl Step for Profileinsrc/bootstrap/setup.rsSubcommand::SetupinBuilder::newandBuilder::get_step_descriptions.cc @aswild - are you interested in tackling this after #96003?
@rustbot label +A-rustbuild +E-easy +E-medium
cc #96003 (comment)