Skip to content

Commit 1d0b1e3

Browse files
committed
skip nostarch directory
This is for coordinating with our publishers; we don't ever want to test it.
1 parent 62b280a commit 1d0b1e3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/bootstrap/check.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,16 @@ pub fn docs(build: &Build, compiler: &Compiler) {
285285
continue
286286
}
287287

288+
// The nostarch directory in the book is for no starch, and so isn't guaranteed to build.
289+
// we don't care if it doesn't build, so skip it.
290+
use std::ffi::OsStr;
291+
let path: &OsStr = p.as_ref();
292+
if let Some(path) = path.to_str() {
293+
if path.contains("nostarch") {
294+
continue;
295+
}
296+
}
297+
288298
println!("doc tests for: {}", p.display());
289299
markdown_test(build, compiler, &p);
290300
}

0 commit comments

Comments
 (0)