-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
enhancementNew feature or improvement to existing functionalityNew feature or improvement to existing functionality
Description
I want uv to tell me whether it thinks it needs an update, before I actually tell it to update.
The most straightforward pattern for this would seem to be supporting --dry-run (which uv lock already supports). uv self update doen't currently support that:
$ uv --version
uv 0.5.7 (3ca155ddd 2024-12-06)
$ uv self update --dry-run
error: unexpected argument '--dry-run' found
tip: to pass '--dry-run' as a value, use '-- --dry-run'
Usage: uv self update [OPTIONS] [TARGET_VERSION]
For more information, try '--help'.
$ uv --dry-run self update
error: unexpected argument '--dry-run' found
Usage: uv [OPTIONS] <COMMAND>
For more information, try '--help'.
$
Possible alternatives:
uv self list-updates(clunky?)uv self update list(ripe for human error)uv self update --list(ditto)uv self list(better, more likeuv python list, may needuv self installtoo? (and maybeuv python updateshould be a command as well?))uv self versions(different name, same action asuv self list, no real precedent though)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or improvement to existing functionalityNew feature or improvement to existing functionality