Skip to content

Commit

Permalink
Invoke cargo update on path dependencies, not registry ones. (#904)
Browse files Browse the repository at this point in the history
was crates.io. The intended behavior is to run it on path sources.
  • Loading branch information
obi1kenobi authored Sep 2, 2024
1 parent 8c4c51c commit 9ba903c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rustdoc_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
//
Expand Down

0 comments on commit 9ba903c

Please # to comment.