about summary refs log tree commit diff
diff options
context:
space:
mode:
authoronur-ozkan <work@onurozkan.dev>2024-06-01 17:19:46 +0300
committeronur-ozkan <work@onurozkan.dev>2024-06-01 17:27:35 +0300
commit5cdec6582a6eab3b66b078cb858294792c096aa8 (patch)
tree6d044e4af9abcfb3eba39f3bbe927f43190d1c21
parent05965ae238403d8c141170b411245a62aa046240 (diff)
downloadrust-5cdec6582a6eab3b66b078cb858294792c096aa8.tar.gz
rust-5cdec6582a6eab3b66b078cb858294792c096aa8.zip
include missing submodule on bootstrap
As of https://github.com/rust-lang/rust/pull/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.

Signed-off-by: onur-ozkan <work@onurozkan.dev>
-rw-r--r--src/bootstrap/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bootstrap/src/lib.rs b/src/bootstrap/src/lib.rs
index 8312885915c..cde090637e0 100644
--- a/src/bootstrap/src/lib.rs
+++ b/src/bootstrap/src/lib.rs
@@ -469,7 +469,8 @@ impl Build {
 
             // Make sure we update these before gathering metadata so we don't get an error about missing
             // Cargo.toml files.
-            let rust_submodules = ["src/tools/cargo", "library/backtrace", "library/stdarch"];
+            let rust_submodules =
+                ["src/tools/cargo", "src/doc/book", "library/backtrace", "library/stdarch"];
             for s in rust_submodules {
                 build.update_submodule(Path::new(s));
             }