about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-03-22 20:08:02 +0100
committerGitHub <noreply@github.com>2023-03-22 20:08:02 +0100
commit6673d0a534095ac4f8d61ef9b3ed97f174dda482 (patch)
tree44386fbd8e8862af87bc05e5ea9c80b23faf6948 /src
parenta7570b022ece8b2a65ae7bf60e024037e6555616 (diff)
parent75718081ee140ad9b18281cc5319a9436101b9da (diff)
downloadrust-6673d0a534095ac4f8d61ef9b3ed97f174dda482.tar.gz
rust-6673d0a534095ac4f8d61ef9b3ed97f174dda482.zip
Rollup merge of #109452 - jfgoog:ignore-vendor, r=ozkanonur
Ignore the vendor directory for tidy tests.

When running `x.py test` on a downloaded source distribution (e.g. https://static.rust-lang.org/dist/rustc-<version>-src.tar.gz), the crates in the vendor directory contain a number of executable files that cause the tidy test to fail with the following message:

tidy error: binary checked into source: <path>

I see 26 such errors with the 1.68.0 source distribution. A few of these are .rs source files with incorrect executable permission, but most are scripts that are correctly marked executable.
Diffstat (limited to 'src')
-rw-r--r--src/tools/tidy/src/walk.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/tidy/src/walk.rs b/src/tools/tidy/src/walk.rs
index 2ade22c209f..67a4df19fcc 100644
--- a/src/tools/tidy/src/walk.rs
+++ b/src/tools/tidy/src/walk.rs
@@ -29,6 +29,7 @@ pub fn filter_dirs(path: &Path) -> bool {
         // Filter RLS output directories
         "target/rls",
         "src/bootstrap/target",
+        "vendor",
     ];
     skip.iter().any(|p| path.ends_with(p))
 }