about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorJieyou Xu <jieyouxu@outlook.com>2025-06-18 19:14:48 +0800
committerJieyou Xu <jieyouxu@outlook.com>2025-06-18 19:14:48 +0800
commit4b50703be87f7da8a50c1aa7111289d99d5ba714 (patch)
treeb9cd120bbf3eb6f683e8afc1de6e75b831d3f7e2 /src/tools
parent1bb335244c311a07cee165c28c553c869e6f64a9 (diff)
downloadrust-4b50703be87f7da8a50c1aa7111289d99d5ba714.tar.gz
rust-4b50703be87f7da8a50c1aa7111289d99d5ba714.zip
Skip tidy triagebot linkcheck if `triagebot.toml` doesn't exist
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/tidy/src/triagebot.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tools/tidy/src/triagebot.rs b/src/tools/tidy/src/triagebot.rs
index 7131c16ec30..305a0b4d264 100644
--- a/src/tools/tidy/src/triagebot.rs
+++ b/src/tools/tidy/src/triagebot.rs
@@ -6,8 +6,11 @@ use toml::Value;
 
 pub fn check(path: &Path, bad: &mut bool) {
     let triagebot_path = path.join("triagebot.toml");
+
+    // This check is mostly to catch broken path filters *within* `triagebot.toml`, and not enforce
+    // the existence of `triagebot.toml` itself (which is more obvious), as distribution tarballs
+    // will not include non-essential bits like `triagebot.toml`.
     if !triagebot_path.exists() {
-        tidy_error!(bad, "triagebot.toml file not found");
         return;
     }