skip submodule updating logics on tarballs
Signed-off-by: onur-ozkan <work@onurozkan.dev>
(cherry picked from commit d2203ad59c)
This commit is contained in:
parent
f32d360dc7
commit
4b9df12d34
2 changed files with 5 additions and 1 deletions
|
|
@ -2748,7 +2748,7 @@ impl Config {
|
|||
/// used instead to provide a nice error to the user if the submodule is
|
||||
/// missing.
|
||||
pub(crate) fn update_submodule(&self, relative_path: &str) {
|
||||
if !self.submodules() {
|
||||
if self.rust_info.is_from_tarball() || !self.submodules() {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -472,6 +472,10 @@ impl Build {
|
|||
/// The given `err_hint` will be shown to the user if the submodule is not
|
||||
/// checked out and submodule management is disabled.
|
||||
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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue