Skip to content

Commit e3f31bc

Browse files
authored
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.
2 parents 1ead586 + 7571808 commit e3f31bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tools/tidy/src/walk.rs

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ pub fn filter_dirs(path: &Path) -> bool {
2929
// Filter RLS output directories
3030
"target/rls",
3131
"src/bootstrap/target",
32+
"vendor",
3233
];
3334
skip.iter().any(|p| path.ends_with(p))
3435
}

0 commit comments

Comments
 (0)