← Back to issue list

commands, parts: add clean command

View original Github issue

Metadata

Project
snapcraft
Number
#3680
Type
pull request
State
merged
Author
cmatsuoka
Labels
—
Created
Updated
Closed

Current evaluation

Merged #3680 via 35ecc5c64, adding a clean command for parts and build-instance cleanup outside destructive or managed modes.

Resolution: closed resolved

Reason: PR #3680 was approved and merged into snapcraft/7.0 with merge commit 35ecc5c64, implementing the requested clean behavior.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Add command to clean parts. The build instance will be removed if no parts are specified and not running in destructive or managed modes. Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com> - [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/)? - [ ] Have you successfully run `./runtests.sh static`? - [ ] Have you successfully run `./runtests.sh tests/unit`? ----- CRAFT-985

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged #3680 via 35ecc5c64, adding a clean command for parts and build-instance cleanup outside destructive or managed modes.
stealth/space-bunny-alpha — closed resolved Merged PR #3680 added a clean command to remove parts and, when none are specified, delete the build instance outside destructive or managed modes.
stealth/space-bunny-alpha — closed resolved PR merged as commit 35ecc5c64 into snapcraft/7.0 (commit abcafbfab), adding a `clean` command that removes parts and, with no part named, deletes the build instance outside destructive/managed modes.
stealth/space-bunny-alpha — closed resolved PR #3680 by cmatsuoka merged as commit 35ecc5c6 into snapcraft/7.0, adding a `snapcraft clean` command for parts (removes build instance when no parts given, outside destructive/managed modes). Includes spread test e7a1f7d1e.
stealth/space-bunny-alpha — closed resolved Merged #3680 via 35ecc5c64, adding a clean command to remove parts and, when none are specified, their build instance outside destructive or managed modes.
stealth/space-bunny-alpha — closed resolved Merged PR #3680 added a clean command that removes parts and their build instances when no parts are specified, except in destructive or managed modes.
stealth/space-bunny-alpha — closed resolved Merged PR #3680, adding a clean command that removes parts and their build instances when no parts are specified, excluding destructive or managed modes.
stealth/space-bunny-alpha — closed resolved Merged PR #3680 via commit 35ecc5c64, adding a clean command that removes parts and, when none are specified, their build instance outside destructive or managed modes.
qwen/qwen3.6-35b-a3b — — Added a clean command to remove parts and their build instances when no parts are specified, excluding destructive or managed modes. Merged after approval, passing CI, and rebasing onto snapcraft/7.0.
qwen3.6-35b-a3b-mtp-q6 — — Merged into snapcraft/7.0, adding a clean command that removes build instances when no parts are specified, excluding destructive or managed modes. The PR increased coverage by 0.68% and was rebased before integration.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#93 commands: add clean command rockcraft merged Merged as c4502a7a via PR #93, adding the rockcraft clean command scaffold with TODO paths for part, destructive-mode, and provider cleanup.
76%
#2775 remote-build: add clean flag snapcraft closed Closed without merging --clean; tests were split into merged PR #2785, while cleanup was deferred to clean-command integration associated with #2678.
71%
#412 clean: introduce clean command (CRAFT-62) charmcraft merged Merged PR #412 (commit 23db6367, merge 646bc259) added a `clean` command removing Charmcraft-created LXD build containers, plus a caplog filter fixture. Later removed as unused in #1571.
71%