migration: support Permissions when migrating files
Metadata
Current evaluation
PR #304 was merged, preserving part permissions when migrating files from stage to prime and forwarding them to link_or_copy(); commit 8e87ebf2.
Resolution: closed resolved
Reason: Canonical/craft-parts#304 was approved and merged as commit 8e87ebf2, adding permission-aware file migration and passing permission lists through to link_or_copy().
Evaluated by: mr-cal-bot
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/)?
-----
(CRAFT-1442)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | PR #304 was merged, preserving part permissions when migrating files from stage to prime and forwarding them to link_or_copy(); commit 8e87ebf2. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #304, preserving part permissions when migrating files from stage to prime and forwarding them to link_or_copy(). | |
| qwen/qwen3.6-35b-a3b | — | — | 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. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged update to file migration logic that now respects and forwards part permissions to link_or_copy() when moving files from stage to prime, resolving CRAFT-1442. |
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 unmerged; superseded by canonical/craft-parts#304, which merged the same permissions-forwarding for stage-to-prime migration in commit 8e87ebf2. | |
| #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 after stage-filter inheritance into prime eliminated the need for stage-to-prime migration redesign; hard-link concerns were deferred to a separate bug. |