Fix x dist --stage 1 src/tools/rust-analyzer

Previously, this would break because the submodule wasn't checked out.
This commit is contained in:
Joshua Nelson 2022-05-27 17:47:31 -05:00
parent 1851f0802e
commit 6f5de285eb

View File

@ -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")