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 @@ -2668,7 +2668,7 @@ impl Config {
26682668 /// used instead to provide a nice error to the user if the submodule is
26692669 /// missing.
26702670 pub ( crate ) fn update_submodule ( & self , relative_path : & str ) {
2671- if !self . submodules ( ) {
2671+ if self . rust_info . is_from_tarball ( ) || !self . submodules ( ) {
26722672 return ;
26732673 }
26742674
Original file line number Diff line number Diff line change @@ -471,6 +471,10 @@ impl Build {
471471 /// The given `err_hint` will be shown to the user if the submodule is not
472472 /// checked out and submodule management is disabled.
473473 pub fn require_submodule ( & self , submodule : & str , err_hint : Option < & str > ) {
474+ if self . rust_info ( ) . is_from_tarball ( ) {
475+ return ;
476+ }
477+
474478 // When testing bootstrap itself, it is much faster to ignore
475479 // submodules. Almost all Steps work fine without their submodules.
476480 if cfg ! ( test) && !self . config . submodules ( ) {
You can’t perform that action at this time.
0 commit comments