x.py tidy doesn't ignore untracked files #75582
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)
Tidy exists as an external tool that
x.py
calls, and it has a fixed set of paths that it ignores. Which is unlike otherx.py
commands which ignore untracked files.This causes problems when some of the ignored paths get moved. eg: as part of 2c31b45 src/stdarch was moved to library/stdarch.
Error log
On one hand I appreciate this, because it tells me to go remove files that aren't required anymore. But on the otherhand I usually run tests in a detached screen session only to come find tests didn't run because of tidy error due to moved submodules.
I'd prefer if the untracked files were ignored and instead at the end of the build log I got a warning saying "Tidy error in untracked directory/file" or someother way of letting me know that a submodule was moved and I should clean up.
The text was updated successfully, but these errors were encountered: