diff --git a/dylint/src/metadata/cli/mod.rs b/dylint/src/metadata/cli/mod.rs index 7b81df9ed..607222e2a 100644 --- a/dylint/src/metadata/cli/mod.rs +++ b/dylint/src/metadata/cli/mod.rs @@ -148,7 +148,7 @@ fn git_dependency_root(url: &str, details: &DetailedTomlDependency) -> Result Result<()> { +fn cargo_fetch(dep_name: &str, path: &Path) -> Result<()> { // smoelius: `cargo fetch` could fail, e.g., if a new checkouts subdirectory had to be created. // But the command should still be executed. // smoelius: Since stdout and stderr are captured, there is no need to use `.quiet(true)`. - let _output = dylint_internal::cargo::fetch("dummy package") + let _output = dylint_internal::cargo::fetch(&format!("`{dep_name}`")) .stable(true) .build() .args([