From 10de4affad42c384483cfc7edd47fcb05e8ee989 Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Wed, 17 Jan 2024 11:17:25 -0500 Subject: [PATCH] Print `dep_name` instead of "dummy package" Bandaid until we come up with a better API for #1014. --- dylint/src/metadata/cli/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dylint/src/metadata/cli/mod.rs b/dylint/src/metadata/cli/mod.rs index 7b81df9ed..e98ce5795 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([