FR: List and repair broken uv tool
venvs (e.g. after a python upgrade).
#8028
Labels
enhancement
New feature or improvement to existing functionality
uv tool
Related to the uv tool interface
In the transcript below, I upgrade from Python 3.12.6 to 3.12.7 and all my
uv tool install
-ed tools break because the symlinks to python are broken. The problem is thatuv
can't handle these broken environments very well.Currently,
uv tool upgrade
does not work as seen in the transcript.uv tool install
works, but does not remember how the tool was installed originally, which is a problem if the tool needs a non-trivial command line to be installed correctly, e.g.:I would like either a
uv tool repair
command to repair such tools or foruv tool upgrade
to be able to repair them. I'd also likeuv tool list
to work better for such tools.Fortunately, the
uv-receipt.toml
file in the tool's venv already has all the needed info, so I'm guessing some feature like this was planned. (Let me know if there's already a way to do it that I missed!)Related: #1640, #7287. I feel like, even if those issues are solved, it'd still be nice if
uv
handled broken tool venvs better.Also related: #7892
Transcript illustrating the problem
The text was updated successfully, but these errors were encountered: