← Back to issue list

Support cleaning build step.

View original Github issue

Metadata

Project
snapcraft
Number
#398
Type
pull request
State
merged
Author
kyrofa
Labels
Created
Updated
Closed

Current evaluation

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.

Suggested action:

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
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.
qwen3.6-35b-a3b-mtp-q6 Merged into ubuntu-core:feature/1537786/per_step_cleaning. Introduces a clean_build() method to the plugin API and Go plugin for selective artifact cleanup. Approved after reviewer feedback and minor adjustments.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#400 Support cleaning pull step. snapcraft merged Merged. Introduced a clean_pull() method to the plugin API to selectively clean pulled files for individual parts, with reimplementations for Go, NodeJS, and Catkin plugins. Approved and merged following positive reviews.
75%
#3126 pluginhandler: allow cleaning the build step snapcraft merged Merged fix resolving PluginV2 part cleanup failures caused by an improper guard in the clean_build method. Approved by reviewer, passed CI, and integrated into the codebase.
74%