Change file migrations such that files move from stage to prime rather than coming from the part each time
Metadata
Current evaluation
Closed as obsolete. The stage-to-prime migration redesign is unnecessary since the stage filter now inherits to prime. Maintainer closed the issue and recommended filing a separate bug for hard link concerns.
Suggested action: —
No scores available.
Issue body
Estimate: 1 week
We currently have three scriptlets that cover the build step only: prepare, build, and install. We want scriptlets around all lifecycle steps: pull, build, stage, and prime. Note that introducing an install step is not part of this roadmap.
There are some complications here that I want to point out. The stage and prime steps are completely handled by the core right now. As soon as we change that and provide the ability to override them, we must account for the possibility that files in stage will be changed from what they were in install, etc. Which means the stage dir must flow to the prime dir, which it does not do today (the file list is retrieved from stage, but the files themselves come from the parts’ install dirs).
Note that the stanzas for pull and build can be completed without such a redesign.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Closed as obsolete. The stage-to-prime migration redesign is unnecessary since the stage filter now inherits to prime. Maintainer closed the issue and recommended filing a separate bug for hard link concerns. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed as no longer needed. The proposed file migration redesign became unnecessary after the stage filter was inherited into the prime filter. The maintainer closed the issue and recommended filing a separate bug for hard link concerns. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed as obsolete. Existing stage-to-prime filter inheritance already handles file migration correctly, eliminating the need for the proposed redesign. A separate issue was recommended to address hard link usage. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed as no longer needed. The stage filter now inherits into the prime filter, eliminating the need for a migration redesign. Maintainer closed the issue and suggested tracking hard link concerns separately. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed as no longer needed. Existing stage-to-prime filter inheritance already handles file migration correctly, making the proposed redesign unnecessary. Maintainer will track hard link removal separately. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #301 migration: support Permissions when migrating files | craft-parts | closed | Closed to implement permission forwarding during stage-to-prime file migration. Conflict handling between parts was deferred to a follow-up PR. | |
| #1617 fix: migrate overlay files before running stage or prime | craft-parts | merged | Merged fix that migrates overlay files before stage or prime steps. Resolves a state tracking bug causing priming failures with symlinks. Approved by reviewers and passed all CI checks. |