Rollup merge of #137338 - onur-ozkan:137332, r=Kobzol
skip submodule updating logics on tarballs Running submodule logic on tarballs isn't necessary since git isn't available there. Fixes #137332
This commit is contained in:
commit
02ceb5fb52
2 changed files with 5 additions and 1 deletions
|
@ -2767,7 +2767,7 @@ impl Config {
|
||||||
),
|
),
|
||||||
)]
|
)]
|
||||||
pub(crate) fn update_submodule(&self, relative_path: &str) {
|
pub(crate) fn update_submodule(&self, relative_path: &str) {
|
||||||
if !self.submodules() {
|
if self.rust_info.is_from_tarball() || !self.submodules() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -481,6 +481,10 @@ impl Build {
|
||||||
),
|
),
|
||||||
)]
|
)]
|
||||||
pub fn require_submodule(&self, submodule: &str, err_hint: Option<&str>) {
|
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
|
// When testing bootstrap itself, it is much faster to ignore
|
||||||
// submodules. Almost all Steps work fine without their submodules.
|
// submodules. Almost all Steps work fine without their submodules.
|
||||||
if cfg!(test) && !self.config.submodules() {
|
if cfg!(test) && !self.config.submodules() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue