Skip to content

Commit

Permalink
Checkout all submodules when building source tarballs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Mar 31, 2024
1 parent 6f4f39a commit 63d6ce0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bootstrap/src/core/build_steps/dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -995,9 +995,9 @@ impl Step for PlainSourceTarball {
if builder.rust_info().is_managed_git_subrepository()
|| builder.rust_info().is_from_tarball()
{
if builder.rust_info().is_managed_git_subrepository() {
// Ensure we have the submodules checked out.
builder.update_submodule(Path::new("src/tools/cargo"));
// Ensure we have all submodules from src and other directories checked out.
for submodule in builder.get_all_submodules() {
builder.update_submodule(Path::new(submodule));
}

// Vendor all Cargo dependencies
Expand Down

0 comments on commit 63d6ce0

Please sign in to comment.