fix: preserve uv pip update reinstall semantics

Maintainer edit: the uv fallback for CLI app updates now keeps the force-reinstall behavior from the python -m pip path by using uv pip install --reinstall, with unit coverage for the generated argv.
This commit is contained in:
chengyongru authored and Xubin Ren committed 2026-06-04 19:41:51 +08:00
1 parent c2e9064b35
commit c77ca16d91
2 files changed
+29 -1

No files matched your search

+1 -1
View File
@@ -723,7 +723,7 @@ class CliAppManager:
if pip_available:
prefix.extend(["--upgrade", "--force-reinstall"])
else:
prefix.append("--upgrade")
prefix.extend(["--upgrade", "--reinstall"])
return prefix + args
def _pip_uninstall_argv(