This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -1001,11 +1001,16 @@ impl Step for PlainSourceTarball {
10011001 channel:: write_commit_info_file ( & plain_dst_src, info) ;
10021002 }
10031003
1004- // If we're building from git sources, we need to vendor a complete distribution.
1005- if builder. rust_info ( ) . is_managed_git_subrepository ( ) {
1006- // Ensure we have the submodules checked out.
1007- builder. update_submodule ( Path :: new ( "src/tools/cargo" ) ) ;
1008- builder. update_submodule ( Path :: new ( "src/tools/rust-analyzer" ) ) ;
1004+ // If we're building from git or tarball sources, we need to vendor
1005+ // a complete distribution.
1006+ if builder. rust_info ( ) . is_managed_git_subrepository ( )
1007+ || builder. rust_info ( ) . is_from_tarball ( )
1008+ {
1009+ if builder. rust_info ( ) . is_managed_git_subrepository ( ) {
1010+ // Ensure we have the submodules checked out.
1011+ builder. update_submodule ( Path :: new ( "src/tools/cargo" ) ) ;
1012+ builder. update_submodule ( Path :: new ( "src/tools/rust-analyzer" ) ) ;
1013+ }
10091014
10101015 // Vendor all Cargo dependencies
10111016 let mut cmd = Command :: new ( & builder. initial_cargo ) ;
You can’t perform that action at this time.
0 commit comments