Skip to content

x.py tidy doesn't ignore untracked files #75582

Open
@arora-aman

Description

@arora-aman

Tidy exists as an external tool that x.py calls, and it has a fixed set of paths that it ignores. Which is unlike other x.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
tidy error: /users/a52arora/rust/src/stdarch/ci/android-install-ndk.sh:2: copyright notices attributed to the Rust Project Developers are deprecated
tidy error: /users/a52arora/rust/src/stdarch/ci/android-install-sdk.sh:2: copyright notices attributed to the Rust Project Developers are deprecated
tidy error: /users/a52arora/rust/src/stdarch/ci/android-install-sdk.sh:49: line longer than 100 chars
tidy error: /users/a52arora/rust/src/stdarch/ci/android-sysimage.sh:3: copyright notices attributed to the Rust Project Developers are deprecated
tidy error: /users/a52arora/rust/src/stdarch/ci/run.sh:29: tab character
tidy error: /users/a52arora/rust/src/stdarch/ci/run.sh:30: tab character

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions