summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rust/files/triagebot.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/rust/files/triagebot.patch')
-rw-r--r--meta/recipes-devtools/rust/files/triagebot.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/files/triagebot.patch b/meta/recipes-devtools/rust/files/triagebot.patch
new file mode 100644
index 0000000000..715664d081
--- /dev/null
+++ b/meta/recipes-devtools/rust/files/triagebot.patch
@@ -0,0 +1,32 @@
1Skip tidy triagebot linkcheck if triagebot.toml doesn't exist
2
3Distribution tarballs won't include triagebot.toml, which
4causes tidy checks to fail with the following error:
5
6 tidy error: triagebot.toml file not found
7 some tidy checks failed
8
9Drop the triagebot.toml check which is mostly to catch broken
10path filters *within* `triagebot.toml` and not enforce
11the existence of it.
12
13Upstream-Status: Backport [https://github.com/rust-lang/rust/pull/142666/commits]
14
15Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
16---
17diff --git a/src/tools/tidy/src/triagebot.rs b/src/tools/tidy/src/triagebot.rs
18--- a/src/tools/tidy/src/triagebot.rs
19+++ b/src/tools/tidy/src/triagebot.rs
20@@ -6,8 +6,11 @@
21
22 pub fn check(path: &Path, bad: &mut bool) {
23 let triagebot_path = path.join("triagebot.toml");
24+
25+ // This check is mostly to catch broken path filters *within* `triagebot.toml`, and not enforce
26+ // the existence of `triagebot.toml` itself (which is more obvious), as distribution tarballs
27+ // will not include non-essential bits like `triagebot.toml`.
28 if !triagebot_path.exists() {
29- tidy_error!(bad, "triagebot.toml file not found");
30 return;
31 }
32