← Back to issue list

Clean: Leave local plugins alone.

View original Github issue

Metadata

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

Current evaluation

Merged fix preventing Snapcraft from deleting the parts directory when local plugins are present. Added a pre-removal check and regression tests to resolve Launchpad bug #1561546. Integrated into master.

Suggested action:

No scores available.

Issue body

Currently Snapcraft will remove the parts directory if no parts are using it, but it doesn't take into account the fact that local plugins are kept in there, and will remove them. This PR fixes LP: [#1561546](https://bugs.launchpad.net/snapcraft/+bug/1561546) by checking for local plugins before removing the parts directory. It also adds tests so that this regression can't happen again.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged fix preventing Snapcraft from deleting the parts directory when local plugins are present. Added a pre-removal check and regression tests to resolve Launchpad bug #1561546. Integrated into master.
qwen3.6-35b-a3b-mtp-q6 Merged fix preventing Snapcraft from deleting local plugins stored in the parts directory during cleanup. Adds a preservation check and regression tests, resolving LP #1561546.
qwen3.6-35b-a3b-mtp-q6 Merged fix for Snapcraft bug #1561546. The code now preserves the parts directory when local plugins are present, preventing accidental deletion. Includes regression tests and was integrated into the master branch.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#2551 project: read local plugins from build-aux snapcraft merged Merged update enabling snapcraft to read local plugins from build-aux/snap when loading snapcraft.yaml from that directory. Approved, passed CI, and integrated into master.
73%
#1561546 Snapcraft clean removes local plugins snapcraft (launchpad) closed Closed without a documented fix or resolution. The bug where snapcraft clean incorrectly removes local plugins remains unaddressed, likely abandoned due to prolonged inactivity.
72%
#2256 local source: don't include .snapcraft directory snapcraft merged Resolved LP: #1791773 by merging a change that excludes the .snapcraft directory from copying and part staleness checks. Approved, passed CI, and merged with a six-line update across two files.
70%