Allow setting a target version for uv self update
#6642
Labels
help wanted
Contribution especially encouraged
releases
Related to building and distributing release artifacts of uv
what
Add cli/env parameter to
uv self update
to allow updating to a givenuv
version. Right now, runninguv self update
will update to the latest version. According to the docs (uv self update --help
anduv help self update
) there is no way to define the target version.why
This would help in the CI and dev environments. All these environments should use the same version to be able to reproduce bugs or dependency issues for example.
side effect
No unnecessary API requests ("is there a new version?") during CI jobs.
how
uv self update --target 0.3.3
(-t)uv self update --target-version 0.3.3
(-t)uv self update --uv-version 0.3.3
(-u)uv self update --to 0.3.3
(-t)additional
Similarly, listing available versions + github release link via something like
uv self versions
might be a good idea.The text was updated successfully, but these errors were encountered: