[rustbuild] should not rollback the submodules most of the time #42404
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Currently rustbuild unconditionally forcefully checks out all the modules before building. This clashes with the workflow that probably should just work:
[rustbuild] will wipe all the changes, potentially losing significant amount of work. I’ve seen this happen to multiple people over time. Instead you have to do this:
Which is super unobvious and failure prone. Miss any of the steps and your changes are wiped. My proposal would be to not forcefully checkout the submodules if the following are true:
Potentially printing a warning or whatever.
The text was updated successfully, but these errors were encountered: