File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2748,7 +2748,7 @@ impl Config {
27482748 /// used instead to provide a nice error to the user if the submodule is
27492749 /// missing.
27502750 pub ( crate ) fn update_submodule ( & self , relative_path : & str ) {
2751- if !self . submodules ( ) {
2751+ if self . rust_info . is_from_tarball ( ) || !self . submodules ( ) {
27522752 return ;
27532753 }
27542754
Original file line number Diff line number Diff line change @@ -472,6 +472,10 @@ impl Build {
472472 /// The given `err_hint` will be shown to the user if the submodule is not
473473 /// checked out and submodule management is disabled.
474474 pub fn require_submodule ( & self , submodule : & str , err_hint : Option < & str > ) {
475+ if self . rust_info ( ) . is_from_tarball ( ) {
476+ return ;
477+ }
478+
475479 // When testing bootstrap itself, it is much faster to ignore
476480 // submodules. Almost all Steps work fine without their submodules.
477481 if cfg ! ( test) && !self . config . submodules ( ) {
You can’t perform that action at this time.
0 commit comments