migration: support Permissions when migrating files
Metadata
Current evaluation
Closed to implement permission forwarding during stage-to-prime file migration. Conflict handling between parts was deferred to a follow-up PR.
Suggested action: —
No scores available.
Issue body
The migration of part files from 'stage' to 'prime' now takes into account the part's 'permissions' definition. This means forwarding the permissions lists all the way down to 'link_or_copy()'.
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
-----
This does *not* handle conflicts/collisions between parts; that will be handled in the next PR on this topic
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Closed to implement permission forwarding during stage-to-prime file migration. Conflict handling between parts was deferred to a follow-up PR. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged to enable permission preservation during stage-to-prime file migration. Permissions are now passed to link_or_copy(). Handling of part conflicts was deferred to a follow-up pull request. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #304 migration: support Permissions when migrating files | craft-parts | merged | Merged after review and CI approval. Updates stage-to-prime file migration to respect and forward part permissions to link_or_copy(), resolving CRAFT-1442. | |
| #1670 Change file migrations such that files move from stage to prime rather than coming from the part each time | snapcraft | closed | 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. |