1
Fork 0

skip submodule updating logics on tarballs

Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
onur-ozkan 2025-02-20 22:48:39 +03:00
parent 3b022d8cee
commit d2203ad59c
2 changed files with 5 additions and 1 deletions

View file

@ -2767,7 +2767,7 @@ impl Config {
),
)]
pub(crate) fn update_submodule(&self, relative_path: &str) {
if !self.submodules() {
if self.rust_info.is_from_tarball() || !self.submodules() {
return;
}

View file

@ -481,6 +481,10 @@ impl Build {
),
)]
pub fn require_submodule(&self, submodule: &str, err_hint: Option<&str>) {
if self.rust_info().is_from_tarball() {
return;
}
// When testing bootstrap itself, it is much faster to ignore
// submodules. Almost all Steps work fine without their submodules.
if cfg!(test) && !self.config.submodules() {