Support cleaning build step.
Metadata
Current evaluation
Merged via snapcraft#401 as commit 5904250f8, adding clean_build() to the plugin API and Go plugin so only a part's built files are cleaned.
Resolution: closed resolved
Reason: The cleanup functionality was merged through PR #401, with commit 5904250f8 implementing the build-step cleanup.
Evaluated by: mr-cal-bot
No scores available.
Issue body
This PR makes progress on LP: [#1537786](https://bugs.launchpad.net/snapcraft/+bug/1537786) by adding the ability to clean only a part's built files. This involves adding a new clean_build() method to the plugin API as there are a few plugins that have more involved build steps than the base implementation's. This commit also reimplements `clean_build()` for the Go plugin.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged via snapcraft#401 as commit 5904250f8, adding clean_build() to the plugin API and Go plugin so only a part's built files are cleaned. | |
| stealth/space-bunny-alpha | — | closed resolved | Added part-level build cleanup via clean_build() to the plugin API and Go plugin; merged in #401 as commit 5904250f8. | |
| qwen/qwen3.6-35b-a3b | — | — | Added clean_build method to the plugin API for selectively cleaning part-built files, with an initial Go plugin implementation. Approved by reviewers, passed CI checks, and merged into the base branch. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into ubuntu-core:feature/1537786/per_step_cleaning. Adds a clean_build() method to the plugin API and implements it for the Go plugin, enabling selective removal of per-part build artifacts to resolve LP #1537786. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
snapcraft#401
(confidence 100%)
The per-step cleaning PR merged this change as commit 5904250f8.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #400 Support cleaning pull step. | snapcraft | merged | Merged #400 in commit 173d0955a, adding plugin clean_pull() support and targeted pull cleanup for Go, Node.js, and Catkin plugins. | |
| #2957 go plugin: do not remove install /bin directory before build | snapcraft | merged | Merged PR #2957 (commit 1fee618c0) stopped the Go plugin from purging $SNAPCRAFT_PART_INSTALL/bin before build, preserving stage-package files; added a spread test for coverage. | |
| #1649684 Support `build` for parts | snapcraft (launchpad) | closed | Implemented part-level build scriptlet support, allowing a custom script to replace the plugin build step; merged in snapcore/snapcraft#988 via commit cc123cad9. | |
| #2442 cli: enable cleaning of parts | snapcraft | merged | Merged #2442 (5546c3aab), restoring snapcraft clean <part-name> with build providers so selected parts can be cleaned without recreating the provider. |