Skip to content

Commit a94483a

Browse files
committed
Auto merge of #125856 - onur-ozkan:bootstrap-submodule-hotfix, r=onur-ozkan
include missing submodule on bootstrap As of #125408 PR, rustbook now relies on dependencies from the "src/doc/book" submodule. However, bootstrap does not automatically sync this submodule before reading metadata informations. And if the submodule is not present, reading metadata will fail because rustbook's dependencies will be missing. This change makes "src/doc/book" to be fetched/synced automatically before trying to read metadata. cc `@Zalathar`
2 parents f2208b3 + 5cdec65 commit a94483a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,8 @@ impl Build {
469469

470470
// Make sure we update these before gathering metadata so we don't get an error about missing
471471
// Cargo.toml files.
472-
let rust_submodules = ["src/tools/cargo", "library/backtrace", "library/stdarch"];
472+
let rust_submodules =
473+
["src/tools/cargo", "src/doc/book", "library/backtrace", "library/stdarch"];
473474
for s in rust_submodules {
474475
build.update_submodule(Path::new(s));
475476
}

0 commit comments

Comments
 (0)