-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't rustfmt check the vendor directory. #69047
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
I would prefer if the rustfmt check was restricted to the |
@@ -7,6 +7,7 @@ merge_derives = false | |||
# tidy only checks files which are not ignored, each entry follows gitignore style | |||
ignore = [ | |||
"build", | |||
"/vendor/", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double check: should there be a leading /
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, it's a gitignore pattern:
foo
— any file or directory named foo anywhere in the repo.foo/
— any directory named foo anywhere in the repo./foo
— a file or directory named foo at the root of the repo./foo/
— a directory named foo at the root of the repo.
The vendor directory is created in the root.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok; so not the root of the filesystem :D
@bors r+ rollup |
📌 Commit 6575abc has been approved by |
r? @Centril |
We can likely revise to ignore all but src; I wrote it this way to avoid accidentally not checking some directory, but there's no expectation in my mind that we would add such a directory. |
Don't rustfmt check the vendor directory. I need to be able to run `x.py tidy` to do license checks (which requires vendored dependencies). However, when vendoring is enabled, it wants to rustfmt check the entire vendor directory, which doesn't work.
Rollup of 8 pull requests Successful merges: - #66498 (Remove unused feature gates) - #68816 (Tweak borrow error on `FnMut` when `Fn` is expected) - #68824 (Enable Control Flow Guard in rustbuild) - #69022 (traits: preallocate 2 Vecs of known initial size) - #69031 (Use `dyn Trait` more in tests) - #69044 (Don't run coherence twice for future-compat lints) - #69047 (Don't rustfmt check the vendor directory.) - #69055 (Clean up E0307 explanation) Failed merges: r? @ghost
I need to be able to run
x.py tidy
to do license checks (which requires vendored dependencies). However, when vendoring is enabled, it wants to rustfmt check the entire vendor directory, which doesn't work.