← Back to issue list

build: use uv plugin to build snapcraft

View original Github issue

Metadata

Project
snapcraft
Number
#5872
Type
pull request
State
merged
Author
bepri
Labels
—
Created
Updated
Closed

Current evaluation

Merged #5872 in commit 7c8d424e3, switching Snapcraft’s build to the uv plugin and pinning maturin for compatibility with the available Rust toolchain.

Resolution: closed resolved

Reason: PR #5872 was merged as commit 7c8d424e3, completing the uv-plugin build migration and maturin version constraint.

Evaluated by: mr-cal-bot

No scores available.

Issue body

- [ ] Have you followed the [guidelines for contributing](https://github.com/canonical/snapcraft/blob/main/CONTRIBUTING.md)? - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] Have you successfully run `make lint`? - [ ] Have you successfully run `make test`? --- Builds snapcraft with the `uv` plugin. This has the added bonus of letting us constrain the maturin version, which is necessary since we don't have a sufficiently new rustc for the latest maturin.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged #5872 in commit 7c8d424e3, switching Snapcraft’s build to the uv plugin and pinning maturin for compatibility with the available Rust toolchain.
stealth/space-bunny-alpha — closed resolved Merged #5872 in commit 7c8d424e3, switching Snapcraft’s build to the uv plugin and pinning maturin for compatibility with the available Rust toolchain.
qwen/qwen3.6-35b-a3b — — Merged changes switching snapcraft build to the uv plugin. This constrains maturin to resolve rustc compatibility issues. Approved by reviewers and passed CI validation before integration.
qwen3.6-35b-a3b-mtp-q6 — — Merged a build update to use the uv plugin for snapcraft, enabling maturin version constraints to accommodate current rustc limitations.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#5284 build: package snap with uv snapcraft closed Closed unmerged after 306 days without review; the uv-based Snapcraft build migration later landed via #5872 (7c8d424e3).
79%
#91 feat: Build snap with uv imagecraft merged Merged PR #91 as commit ff99627, switching the imagecraft snap build to uv and fixing #83/CRAFT-4062.
78%
#5187 Add support for uv plugin snapcraft closed UV plugin support was added by merged PR #5196 in commit 800823a55, enabling Snapcraft users to build parts with the craft-parts uv plugin.
78%
#83 Improve snap build using uv imagecraft closed Snap build was migrated to uv by merged PR canonical/imagecraft#91 (commit ff99627), replacing the previous build flow and allowing the imagecraft part to be rebuilt after failures.
77%
#1018 build: use uv plugin to build rockcraft merged Merged as d822555f, incorporating Charmcraft #2050 (6d0d9ce4) to build with the uv plugin; companion Rockcraft #1019 addressed the pending snap-test failures.
75%
#5444 build(deps): refresh uv.lock snapcraft merged Merged #5444 as commit 8877c8f3a, refreshing uv.lock in preparation for the Snapcraft 8.9 release.
74%
#2039 Move to using uv plugin to build charmcraft closed Charmcraft’s snap build was migrated to the uv plugin in merged PR #2412 via commit 5d8ea0e4, resolving #2039.
72%
#5554 fix(build): freeze UV in the snap build snapcraft merged Merged #5554 in commit bc22a58cd, freezing UV during snap builds and refreshing uv.lock; all CI checks passed.
71%