diff options
| author | binarycat <binarycat@envs.net> | 2025-07-08 12:32:33 -0500 |
|---|---|---|
| committer | binarycat <binarycat@envs.net> | 2025-07-08 16:16:48 -0500 |
| commit | 9aafc98244c0a8e0ec83203e7d17e02fcdfa0371 (patch) | |
| tree | ec22e836b5e765dd457bbf3fb803c22b586aadbe /src | |
| parent | 6b349a41da18b0960c7a2e7bb2d8444b56f32054 (diff) | |
| download | rust-9aafc98244c0a8e0ec83203e7d17e02fcdfa0371.tar.gz rust-9aafc98244c0a8e0ec83203e7d17e02fcdfa0371.zip | |
tidy: assume all files are modified in CI
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/tidy/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/tidy/src/lib.rs b/src/tools/tidy/src/lib.rs index 062cfe7b597..77855392b4d 100644 --- a/src/tools/tidy/src/lib.rs +++ b/src/tools/tidy/src/lib.rs @@ -126,6 +126,10 @@ pub fn git_diff<S: AsRef<OsStr>>(base_commit: &str, extra_arg: S) -> Option<Stri /// Returns true if any modified file matches the predicate, if we are in CI, or if unable to list modified files. pub fn files_modified(ci_info: &CiInfo, pred: impl Fn(&str) -> bool) -> bool { + if CiEnv::is_ci() { + // assume everything is modified on CI because we really don't want false positives there. + return true; + } let Some(base_commit) = &ci_info.base_commit else { eprintln!("No base commit, assuming all files are modified"); return true; |
