From 6f5de285eb093260a7a60664adc0683c86fa40d5 Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Fri, 27 May 2022 17:47:31 -0500 Subject: [PATCH] Fix `x dist --stage 1 src/tools/rust-analyzer` Previously, this would break because the submodule wasn't checked out. --- src/bootstrap/dist.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index cc10d67c551db..ae9fc1c527fca 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -879,6 +879,9 @@ impl Step for PlainSourceTarball { // If we're building from git sources, we need to vendor a complete distribution. if builder.rust_info.is_git() { + // Ensure we have the submodules checked out. + builder.update_submodule(Path::new("src/tools/rust-analyzer")); + // Vendor all Cargo dependencies let mut cmd = Command::new(&builder.initial_cargo); cmd.arg("vendor")