Checkout all submodules when building source tarballs

This commit is contained in:
Jakub Beránek 2024-03-30 19:58:30 +01:00
parent 6f4f39a8d5
commit 63d6ce03b3
No known key found for this signature in database
GPG key ID: 909CD0D26483516B

View file

@ -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