← Back to issue list

cli: Add --destructive-mode to clean

View original Github issue

Metadata

Project
snapcraft
Number
#2577
Type
pull request
State
merged
Author
sparkiegeek
Labels
—
Created
Updated
Closed

Current evaluation

Merged in snapcraft#2577 via commit 2d661c723, adding --destructive-mode support to clean so wrapper scripts can pass it to lifecycle commands.

Resolution: closed resolved

Reason: PR #2577 was approved and merged into master as commit 2d661c723. Its implementation added --destructive-mode support for clean and resolved Launchpad bug #1827191.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Allow wrapper scripts to pass --destructive-mode to lifecycle commands Fixes https://bugs.launchpad.net/snapcraft/+bug/1827191 - [ :x: ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [ :ballot_box_with_check: ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ :x: ] Have you successfully run `./runtests.sh static`? - [ :x: ] Have you successfully run `./runtests.sh tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged in snapcraft#2577 via commit 2d661c723, adding --destructive-mode support to clean so wrapper scripts can pass it to lifecycle commands.
stealth/space-bunny-alpha — closed resolved Merged PR #2577 as commit 2d661c723, adding --destructive-mode to clean so wrapper scripts can pass it to lifecycle commands.
stealth/space-bunny-alpha — closed resolved Merged in #2577 (commit 2d661c723), adding --destructive-mode to the clean CLI command so wrapper scripts can pass it to lifecycle commands.
qwen/qwen3.6-35b-a3b — — Merged into master, adding --destructive-mode to the clean CLI command to allow wrapper scripts to pass the flag to lifecycle commands. Approved by two reviewers, the change was merged with 100% diff coverage and a 0.02% overall coverage increase.
qwen3.6-35b-a3b-mtp-q6 — — Added --destructive-mode flag to the clean CLI command, enabling wrapper scripts to pass it to lifecycle commands. Merged into master after approval and 100% diff coverage, resolving Launchpad bug 1827191.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1827191 --destructive-mode is not available in `snapcraft clean` snapcraft (launchpad) closed Added --destructive-mode support to snapcraft clean in snapcore/snapcraft PR #2577, enabling host-side project artifact cleanup.
81%
#227 cli: add --destructive-mode flag rockcraft merged Merged PR #227 as commit 84f76b85, adding --destructive-mode so ROCKs can be built directly on the host, matching Snapcraft and Charmcraft.
75%
#1791201 add support for --destructive-mode snapcraft (launchpad) closed Host builds via --destructive-mode landed in merged PR canonical/snapcraft#2339 (commit 024c63453), making Multipass default while retaining host builds.
71%
#1007 lifecycle: clean without parsing if possible. snapcraft merged Merged in snapcraft#1007 via commit bacf75dfe, allowing full clean operations to bypass snapcraft.yaml parsing unless part-specific cleanup is required.
70%
#2553 ci: use --destructive-mode to build snap in travis snapcraft closed Closed unmerged after no reviews or activity; the proposed Travis change to build snaps with --destructive-mode was abandoned.
70%