Skip to content

Commit b88610f

Browse files
Rollup merge of rust-lang#115109 - cuviper:yaml-404, r=albertlarsan68
Skip ExpandYamlAnchors when the config is missing The dist-src tarball does not include `.github/` at all, so we can't check whether it needs to be regenerated.
2 parents 8c24ce1 + 35187c7 commit b88610f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bootstrap/test.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1174,6 +1174,11 @@ impl Step for ExpandYamlAnchors {
11741174
/// appropriate configuration for all our CI providers. This step ensures the tool was called
11751175
/// by the user before committing CI changes.
11761176
fn run(self, builder: &Builder<'_>) {
1177+
// Note: `.github/` is not included in dist-src tarballs
1178+
if !builder.src.join(".github/workflows/ci.yml").exists() {
1179+
builder.info("Skipping YAML anchors check: GitHub Actions config not found");
1180+
return;
1181+
}
11771182
builder.info("Ensuring the YAML anchors in the GitHub Actions config were expanded");
11781183
builder.run_delaying_failure(
11791184
&mut builder.tool_cmd(Tool::ExpandYamlAnchors).arg("check").arg(&builder.src),

0 commit comments

Comments
 (0)