From 9ba903c837e9bc98983b61020cc931b627a47eea Mon Sep 17 00:00:00 2001 From: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com> Date: Mon, 2 Sep 2024 13:57:44 -0400 Subject: [PATCH] Invoke `cargo update` on path dependencies, not registry ones. (#904) was crates.io. The intended behavior is to run it on path sources. --- src/rustdoc_cmd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rustdoc_cmd.rs b/src/rustdoc_cmd.rs index 1883dd86..507448f4 100644 --- a/src/rustdoc_cmd.rs +++ b/src/rustdoc_cmd.rs @@ -66,7 +66,7 @@ impl RustdocCommand { let placeholder_manifest_path = save_placeholder_rustdoc_manifest(build_dir.as_path(), placeholder_manifest) .context("failed to save placeholder rustdoc manifest")?; - if matches!(crate_source, CrateSource::Registry { .. }) { + if matches!(crate_source, CrateSource::ManifestPath { .. }) { // We have to run `cargo update` inside the newly-generated project, to ensure // all dependencies of the library we're scanning are up-to-date. //