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