pluginhandler: update build should overwrite organize
Metadata
Current evaluation
Merged PR #2290 at commit 2cef6c3f6 made organize overwrite previously organized files and directories, allowing build updates without cleaning and resolving LP #1794083.
Resolution: closed resolved
Reason: The approved PR was merged as commit 2cef6c3f6, implementing idempotent organize behavior that permits repeated builds without manually cleaning the part.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)?
- [x] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)?
- [x] Have you successfully run `./runtests.sh static`?
- [x] Have you successfully run `./runtests.sh tests/unit`?
-----
If a part uses the `organize` keyword, in order for the `build` step to be updated, the organization must support happening twice without a clean. This PR resolves [LP: #1794083](https://bugs.launchpad.net/snapcraft/+bug/1794083) by adding the ability for `organize` to overwrite files and directories previously organized by the part.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #2290 at commit 2cef6c3f6 made organize overwrite previously organized files and directories, allowing build updates without cleaning and resolving LP #1794083. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #2290 (commit 2cef6c3f6) makes organize overwrite files and directories already organized by a part, allowing build-step updates without a clean. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged changes resolve LP: #1794083 by allowing organize to overwrite previously organized files when a part build step updates. Approved by one reviewer, passed CI, and achieved 100% diff coverage. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged to resolve Launchpad bug #1794083. Updates pluginhandler to allow organize to overwrite previously organized files during incremental builds without a clean step. Achieved 100% diff coverage. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2305 [legacy] pluginhandler: update build should overwrite organize | snapcraft | merged | Merged legacy backport PR #2305 of #2290, fixing LP #1794083 so update builds can overwrite files arranged by organize. | |
| #2047 pluginhandler: organize in build instead of stage | snapcraft | merged | Merged PR #2047 moved organize handling from stage to build, fixing repeat staging and ensuring collision detection sees organized files. | |
| #1794083 Updating build with organize can result in "destination path already exists" | snapcraft (launchpad) | closed | Fixed in snapcore/snapcraft#2290 (commit 2cef6c3f6), making update builds overwrite prior organize output; #2305 was linked as the 18.10 follow-up. |