The prime step uses the install dir when creating a list of migrateable filesets
Metadata
Current evaluation
craft-parts prime step computes migratable filesets from the install dir instead of the stage dir, failing when stage removes a file prime includes. A one-line fix was proposed but breaks overlay cleaning tests; blocked on defining overlay cleaning semantics.
Suggested action: keep open
Reason: Maintainers actively triaged this: @sergiusens confirmed the fileset should be built from staged content, and @mr-cal's 2025-06-23 comment shows the proposed fix breaks overlay-cleaning integration tests (test_lifecycle_overlay.py#L292) and the work is explicitly blocked on documenting overlay cleaning behavior. I verified the buggy line (part_install_dir in _builtin_prime) is still present at current HEAD, so the issue remains applicable and should stay open pending that architectural decision.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
50
Quick Win:
14.0
Staleness:
58
Complexity:
72
Confidence:
82
Support Request:
0
|
keep open | craft-parts prime step computes migratable filesets from the install dir instead of the stage dir, failing when stage removes a file prime includes. A one-line fix was proposed but breaks overlay cleaning tests; blocked on defining overlay cleaning semantics. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
75
Complexity:
85
Confidence:
85
Support Request:
0
|
keep open | Bug where prime step incorrectly uses install dir instead of stage dir for fileset migration, causing failures when stage removes files. Currently blocked on defining overlay cleaning behavior after a proposed fix broke integration tests. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
75
Complexity:
80
Confidence:
85
Support Request:
10
|
keep open | Bug where prime step incorrectly uses install dir for migratable filesets, causing failures when stage removes files. Currently blocked by maintainer pending documentation of overlay cleaning behavior. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
65
Complexity:
60
Confidence:
90
Support Request:
0
|
keep open | Bug where prime step uses install dir instead of stage dir for fileset migration, failing when stage removes files. Proposed fix breaks overlay cleaning tests. Blocked until overlay cleaning behavior is documented. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/snapcraft#4835
(confidence 85%)
Cited in the issue body as the upstream source report from which this craft-parts bug was extracted.
Related issues
No related issues found above the similarity threshold.