Sourced from astral-sh/setup-uv's releases.
v7.0.0 🌈 node24 and a lot of bugfixes
Changes
This release comes with a load of bug fixes and a speed up. Because of switching from node20 to node24 it is also a breaking change. If you are running on GitHub hosted runners this will just work, if you are using self-hosted runners make sure, that your runners are up to date. If you followed the normal installation instructions your self-hosted runner will keep itself updated.
This release also removes the deprecated input
server-url
which was used to download uv releases from a different server. The manifest-file input supersedes that functionality by adding a flexible way to define available versions and where they should be downloaded from.Fixes
- The action now respects when the environment variable
UV_CACHE_DIR
is already set and does not overwrite it. It now also finds cache-dir settings in config files if you set them.- Some users encountered problems that cache pruning took forever because they had some
uv
processes running in the background. Starting with uv version0.8.24
this action usesuv cache prune --ci --force
to ignore the running processes- If you just want to install uv but not have it available in path, this action now respects
UV_NO_MODIFY_PATH
- Some other actions also set the env var
UV_CACHE_DIR
. This action can now deal with that but as this could lead to unwanted behavior in some edgecases a warning is now displayed.Improvements
If you are using minimum version specifiers for the version of uv to install for example
[tool.uv] required-version = ">=0.8.17"
This action now detects that and directly uses the latest version. Previously it would download all available releases from the uv repo to determine the highest matching candidate for the version specifier, which took much more time.
If you are using other specifiers like
0.8.x
this action still needs to download all available releases because the specifier defines an upper bound (not 0.9.0 or later) and "latest" would possibly not satisfy that.🚨 Breaking changes
- Use node24 instead of node20
@eifinger
(#608)- Remove deprecated input server-url
@eifinger
(#607)🐛 Bug fixes
- Respect UV_CACHE_DIR and cache-dir
@eifinger
(#612)- Use --force when pruning cache
@eifinger
(#611)- Respect UV_NO_MODIFY_PATH
@eifinger
(#603)- Warn when
UV_CACHE_DIR
has changed@jamesbraza
(#601)🚀 Enhancements
- Shortcut to latest version for minimum version specifier
@eifinger
(#598)🧰 Maintenance
- Bump dependencies
@eifinger
(#613)- Fix test-uv-no-modify-path
@eifinger
(#604)
... (truncated)
eb1897b
Bump dependencies (#613)d78d791
Bump github/codeql-action from 3.30.5 to 3.30.6 (#605)535dc26
Respect UV_CACHE_DIR and cache-dir (#612)f610be5
Use --force when pruning cache (#611)3deccc0
Use node24 instead of node20 (#608)d9ee7e2
Remove deprecated input server-url (#607)59a0868
Bump github/codeql-action from 3.30.3 to 3.30.5 (#594)c952556
Bump @renovatebot/pep440
from 4.2.0 to 4.2.1 (#581)51c3328
Fix test-uv-no-modify-path (#604)f2859da
Respect UV_NO_MODIFY_PATH (#603)