Skip to content

Commit d2203ad

Browse files
committed
skip submodule updating logics on tarballs
Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent 3b022d8 commit d2203ad

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/bootstrap/src/core/config/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2767,7 +2767,7 @@ impl Config {
27672767
),
27682768
)]
27692769
pub(crate) fn update_submodule(&self, relative_path: &str) {
2770-
if !self.submodules() {
2770+
if self.rust_info.is_from_tarball() || !self.submodules() {
27712771
return;
27722772
}
27732773

src/bootstrap/src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,10 @@ impl Build {
481481
),
482482
)]
483483
pub fn require_submodule(&self, submodule: &str, err_hint: Option<&str>) {
484+
if self.rust_info().is_from_tarball() {
485+
return;
486+
}
487+
484488
// When testing bootstrap itself, it is much faster to ignore
485489
// submodules. Almost all Steps work fine without their submodules.
486490
if cfg!(test) && !self.config.submodules() {

0 commit comments

Comments
 (0)