mirror of https://github.com/astral-sh/uv
Add `--all` to `uvx --reinstall` message (#11535)
## Summary See: https://github.com/astral-sh/uv/issues/8067#issuecomment-2660898125
This commit is contained in:
parent
15d75f91df
commit
985e5be96e
|
|
@ -468,9 +468,9 @@ impl ToolRunSettings {
|
||||||
// If `--reinstall` was passed explicitly, warn.
|
// If `--reinstall` was passed explicitly, warn.
|
||||||
if installer.reinstall || !installer.reinstall_package.is_empty() {
|
if installer.reinstall || !installer.reinstall_package.is_empty() {
|
||||||
if with.is_empty() && with_requirements.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 {
|
} 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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue