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
🐛 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
🧰 Maintenance
- Bump dependencies @eifinger (#613)
- Fix test-uv-no-modify-path @eifinger (#604)
- Don't assume all test passed if cancelled @eifinger (#599)
⬆️ Dependency updates
- Bump github/codeql-action from 3.30.5 to 3.30.6 @dependabot[bot] (#605)
- Bump github/codeql-action from 3.30.3 to 3.30.5 @dependabot[bot] (#594)
- Bump @renovatebot/pep440 from 4.2.0 to 4.2.1 @dependabot[bot] (#581)