From 985e5be96e55cfd2f598663db0383f7c11f0f4cc Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Sat, 15 Feb 2025 09:03:53 -0500 Subject: [PATCH] Add `--all` to `uvx --reinstall` message (#11535) ## Summary See: https://github.com/astral-sh/uv/issues/8067#issuecomment-2660898125 --- crates/uv/src/settings.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/uv/src/settings.rs b/crates/uv/src/settings.rs index f5864066b..63ed91655 100644 --- a/crates/uv/src/settings.rs +++ b/crates/uv/src/settings.rs @@ -468,9 +468,9 @@ impl ToolRunSettings { // If `--reinstall` was passed explicitly, warn. if installer.reinstall || !installer.reinstall_package.is_empty() { if with.is_empty() && with_requirements.is_empty() { - warn_user_once!("Tools cannot be reinstalled via `{invocation_source}`; use `uv tool upgrade --reinstall` to reinstall all installed tools, or `{invocation_source} package@latest` to run the latest version of a tool."); + warn_user_once!("Tools cannot be reinstalled via `{invocation_source}`; use `uv tool upgrade --all --reinstall` to reinstall all installed tools, or `{invocation_source} package@latest` to run the latest version of a tool."); } else { - warn_user_once!("Tools cannot be reinstalled via `{invocation_source}`; use `uv tool upgrade --reinstall` to reinstall all installed tools, `{invocation_source} package@latest` to run the latest version of a tool, or `{invocation_source} --refresh package` to reinstall any `--with` dependencies."); + warn_user_once!("Tools cannot be reinstalled via `{invocation_source}`; use `uv tool upgrade --all --reinstall` to reinstall all installed tools, `{invocation_source} package@latest` to run the latest version of a tool, or `{invocation_source} --refresh package` to reinstall any `--with` dependencies."); } }