fix: make uv plugin re-entrant on code changes
Metadata
Current evaluation
Merged PR #956 as commit a35ccbfe, making the uv plugin re-entrant so source-code changes are detected without manually cleaning the parts build space.
Resolution: closed resolved
Reason: PR #956 was approved and merged as commit a35ccbfe. It fixes uv builds reusing stale code by detecting source changes without requiring build-space cleanup.
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`)?
-----
When changing source code, the uv plugin would not use the new code without first cleaning out the parts build space. This PR fixes that.
Based off of https://github.com/canonical/craft-parts/pull/955.
Needed by https://github.com/canonical/snapcraft/pull/5196.
CRAFT-3841
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #956 as commit a35ccbfe, making the uv plugin re-entrant so source-code changes are detected without manually cleaning the parts build space. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #956 as commit a35ccbfe, fixing the uv plugin to detect source-code changes without requiring cleanup of the parts build space. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged a fix ensuring the uv plugin detects source code changes without requiring a build space cleanup. Approved by three reviewers, passed CI, and applied with minimal changes across three files. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged a fix making the uv plugin re-entrant on code changes. New source code is now automatically detected and built without manual parts build space cleanup. Resolves CRAFT-3841 and enables dependent snapcraft changes. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/craft-parts#955
(confidence 100%)
PR #956 was based on the preceding changes from #955.
-
Related To:
canonical/snapcraft#5196
(confidence 98%)
The PR description identifies Snapcraft #5196 as the downstream work requiring this fix.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1486 docs: update uv plugin reference | craft-parts | merged | Merged PR #1486 as commit f91f0d4c, documenting UV_COMPILE_BYTECODE and correcting minor details in the uv plugin reference. | |
| #5196 feat: support for the uv plugin | snapcraft | merged | Merged PR #5196 added uv plugin support in commit 800823a55, closing #5187. | |
| #2820 fix(tests): handle uv init's new src/ scaffolding in uv plugin integration test | charmcraft | merged | PR #2820 merged (by lengau, Copilot CLI-authored): the uv_project fixture in tests/integration/parts/plugins/test_uv.py now deletes uv init's scaffolded src/ before recreating it, fixing the FileExistsError CI failure from PR #2818. | |
| #2413 docs: clarify how to use the uv plugin | charmcraft | merged | Merged PR #2413 as commit 2154ccbd, fixing #2238: uv examples now install astral-uv, while migration docs clarify runtime dependencies and uv.lock. | |
| #930 feat: add uv plugin | craft-parts | merged | Merged as commit 3ff84991, adding a dedicated uv plugin and closing craft-parts#706 for CRAFT-2751. |