Skip to content

Commit 2af4636

Browse files
committed
avoid updating submodules during bootstrap unit tests
Unit tests use their own config values instead of reading user's config file, which can lead to submodule fetching which is not needed for the tests. Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent d0985bb commit 2af4636

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2526,7 +2526,7 @@ impl Config {
25262526
/// used instead to provide a nice error to the user if the submodule is
25272527
/// missing.
25282528
pub(crate) fn update_submodule(&self, relative_path: &str) {
2529-
if !self.submodules() {
2529+
if !self.submodules() || cfg!(feature = "bootstrap-self-test") {
25302530
return;
25312531
}
25322532

0 commit comments

Comments
 (0)