diff options
Diffstat (limited to 'meta/recipes-devtools/rust/files/triagebot.patch')
-rw-r--r-- | meta/recipes-devtools/rust/files/triagebot.patch | 32 |
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 @@ | |||
1 | Skip tidy triagebot linkcheck if triagebot.toml doesn't exist | ||
2 | |||
3 | Distribution tarballs won't include triagebot.toml, which | ||
4 | causes tidy checks to fail with the following error: | ||
5 | |||
6 | tidy error: triagebot.toml file not found | ||
7 | some tidy checks failed | ||
8 | |||
9 | Drop the triagebot.toml check which is mostly to catch broken | ||
10 | path filters *within* `triagebot.toml` and not enforce | ||
11 | the existence of it. | ||
12 | |||
13 | Upstream-Status: Backport [https://github.com/rust-lang/rust/pull/142666/commits] | ||
14 | |||
15 | Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com> | ||
16 | --- | ||
17 | diff --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 | |||