-
Notifications
You must be signed in to change notification settings - Fork 901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List available upgrades for tools with uv tool list --outdated
#9309
Comments
I think I need to look at why we're panicking there -- that's strange. |
@charliermarsh |
It's a little bit of a pain. We have a common |
I'll fix it, it just requires some unfortunate duplication. |
Cleaned up in #9318, but leaving this issue open since it's about |
Just my $0.02, but I think -n/--dry-run is a better flag for it. It's more in line with how other tools handle it, plus it can be a common flag for other sub-commands as well (e.g. install, uninstall, etc). Having an option to just list outdated packages would be very useful though, at least for my use-case. I have a script that uses ecosystem-specific tools for various platforms to check for and list all outdated packages. I like to see everything that can be upgraded before actually doing it, just in case it's not necessary or it might take a while and bog down resources. |
Is there no way of seeing updates for tools?
I currently have ruff 0.7.3 installed. I can successfully upgrade the tool using
uv tool upgrade ruff
, which updates it to 0.7.4, but would like to see what is available to upgrade first so that I can go and read the release notes (and put it in a script to show me when new versions are available). I useduv tool install ruff
rather than just running via uvx so that I can use generate-shell-completion for it (that does not work when running under uvx as starting a command withuvx ruff ...
does not show shell completion forruff ...
)I am using uv 0.5.3 on Windows, with Powershell 7.4.6
My uv installed version of ruff is old, but I would have expected to be able to use --outdated like on uv pip list / uv tree
I was looking at if there was other ways of doing this, but it appears not. Oddly, the shell completion for powershell gives --no-upgrade as an option on
uv tool upgrade
:But running it just gives an error:
But that appears to be more an issue with the
uv generate-shell-completion powershell
as that option is not listed in the help/documentation?The text was updated successfully, but these errors were encountered: