fix: validate uv plugin for newer uv versions
Metadata
Current evaluation
Merged #1086 (f3a50042), switching uv plugin validation from uv version to uv --version for compatibility with uv 0.7.0+ and pyproject.toml projects.
Resolution: closed resolved
Reason: PR #1086 passed CI and was merged as commit f3a50042. It validates with uv --version, avoiding the project-version output introduced by uv 0.7.0; downstream integration was tracked in canonical/charmcraft#2279.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] Have you added an entry to the changelog (`docs/reference/changelog.rst`)?
-----
[uv 0.7.0](https://github.com/astral-sh/uv/releases/tag/0.7.0) changed the UI of the version subcommand in a breaking way way, so any builds attempting to use the latest uv [would break](https://github.com/canonical/rockcraft/actions/runs/14754866945/job/41420894113?pr=870#step:10:533).
The uv tests in [this workflow](https://github.com/canonical/rockcraft/actions/runs/14756594240/job/41426328639?pr=876) prove this works.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged #1086 (f3a50042), switching uv plugin validation from uv version to uv --version for compatibility with uv 0.7.0+ and pyproject.toml projects. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in craft-parts#1086: validation changed from `uv version` to `uv --version`, fixing builds with uv 0.7.0+ and project pyproject.toml files. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged fix for uv plugin validation in versions 0.7.0+. Replaced uv version with uv --version to prevent conflicts with project pyproject.toml parsing, resolving build failures in newer uv environments. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged fix switching uv plugin validation to uv --version, resolving uv 0.7.0+ breaking changes and local pyproject.toml parsing conflicts that caused version validation failures. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/charmcraft#2279
(confidence 96%)
Downstream Charmcraft PR porting the corrected uv validation command.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1089 Backport uv fix to 2.7 | craft-parts | merged | Merged as commit 25d28785; #1089 backported #1086 to the 2.7 branch, fixing Snapcraft uv 0.7+ validation for projects with pyproject.toml files. |