Use link_or_copy instead of just hard-links for deb cache.
Metadata
Current evaluation
Merged PR #728 as commit 3d1835b5d, replacing deb-cache hard links with link_or_copy so caching works across filesystem boundaries; fixes LP #1612813.
Resolution: closed resolved
Reason: PR #728 was merged with commit 3d1835b5d. The change makes the Debian cache fall back to copying when hard-linking across filesystem boundaries is impossible.
Evaluated by: mr-cal-bot
No scores available.
Issue body
This PR fixes LP: [#1612813](https://bugs.launchpad.net/snapcraft/+bug/1612813), making the cache work across filesystem boundaries.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #728 as commit 3d1835b5d, replacing deb-cache hard links with link_or_copy so caching works across filesystem boundaries; fixes LP #1612813. | |
| stealth/space-bunny-alpha | — | closed resolved | PR #728 by kyrofa merged (commit 3d1835b5d), swapping hard links for link_or_copy in the deb cache so it works across filesystem boundaries; fixes LP bug #1612813. Approved by come-maiz. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in canonical/snapcraft#728 (commit 3d1835b5d), replacing deb-cache hard links with link_or_copy so caching works across filesystem boundaries. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged a fix replacing hard-links with link_or_copy for the deb cache, enabling cross-filesystem caching and resolving Launchpad bug #1612813. Approved by @come-maiz with minimal code changes. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged change replacing hard-links with link_or_copy for the deb cache, resolving cross-filesystem cache failures (LP #1612813). Approved by @come-maiz. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3174 link_or_copy: do not try to create hardlinks to symlinks. | snapcraft | merged | Merged PR #3174 (commit 221a43803) to copy symlinks instead of attempting hard links, preventing errors on mounted macOS volumes. |