From 88640585fa42a82d0ad99a963921b5e22b179d56 Mon Sep 17 00:00:00 2001 From: alcolmenar Date: Wed, 9 Aug 2023 15:57:34 -0700 Subject: [PATCH] fix: add quiet verbosity during resolve --- src/bin/cargo/commands/remove.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/cargo/commands/remove.rs b/src/bin/cargo/commands/remove.rs index 06aa5858d3aa..db10b9ca230b 100644 --- a/src/bin/cargo/commands/remove.rs +++ b/src/bin/cargo/commands/remove.rs @@ -110,7 +110,12 @@ pub fn exec(config: &mut Config, args: &ArgMatches) -> CliResult { // Reload the workspace since we've changed dependencies let ws = args.workspace(config)?; + let verbosity = ws.config().shell().verbosity(); + ws.config() + .shell() + .set_verbosity(cargo::core::Verbosity::Quiet); let (_, resolve) = resolve_ws(&ws)?; + ws.config().shell().set_verbosity(verbosity); // Attempt to gc unused patches and re-resolve if anything is removed if gc_unused_patches(&workspace, &resolve)? {