feat(pack): add shared cache support
Metadata
Current evaluation
Merged PR #1270 (commit f2353279) added default shared pip caching for pack, using ~/.cache/charmcraft and honoring CRAFT_SHARED_CACHE, fixing #1256.
Resolution: closed resolved
Reason: PR #1270 was merged as commit f2353279. It enabled shared pip wheel caching during pack, added CRAFT_SHARED_CACHE path configuration, and fixed issue #1256.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Default enabled.
Currently only support pip.
Default cache storage at `~/.cache/charmcraft`
Path could be changed use env `CRAFT_SHARED_CACHE=XXX`
Fix: https://github.com/canonical/charmcraft/issues/1256
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #1270 (commit f2353279) added default shared pip caching for pack, using ~/.cache/charmcraft and honoring CRAFT_SHARED_CACHE, fixing #1256. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged shared pip cache support for packing, using ~/.cache/charmcraft by default and CRAFT_SHARED_CACHE to override it; fixes #1256. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #1270 in commit f2353279, adding default pip shared caching at ~/.cache/charmcraft with a CRAFT_SHARED_CACHE path override and fixing #1256. | |
| stealth/space-bunny-alpha | — | closed resolved | PR #1270 merged as commit f2353279, adding default pip caching at ~/.cache/charmcraft with CRAFT_SHARED_CACHE overrides and resolving #1256. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #1270 (commit f2353279): added shared pip cache support to `charmcraft pack`, enabled by default at ~/.cache/charmcraft, path overridable via CRAFT_SHARED_CACHE. Fixes #1256. Later refined by #1763, #1888, #2046. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #1270 in commit f2353279, adding default pip shared caching at ~/.cache/charmcraft, configurable via CRAFT_SHARED_CACHE; fixed #1256. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged feature adding shared cache support for charmcraft. Enabled by default with pip-only initial support, configurable via CRAFT_SHARED_CACHE. Resolves issue #1256 after passing CI and two approvals, despite minor unresolved test comments. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged to implement shared cache support for packaging, defaulting to pip with storage in ~/.cache/charmcraft. Configurable via CRAFT_SHARED_CACHE. Resolves issue #1256. Minor test glob expansion concerns were noted but deemed unrelated. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/charmcraft#1256
(confidence 100%)
PR #1270 explicitly fixes #1256 by adding global pip cache reuse.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1256 Support global cache for pip in charmcraft | charmcraft | closed | Pip global shared caching was added by merged PR #1270 (commit f2353279), enabling wheel reuse across containers; test PR #1249 was closed unmerged. | |
| #1762 `CRAFT_SHARED_CACHE` broken or ignored in charmcraft 3.1 | charmcraft | closed | Fixed in merged PR canonical/charmcraft#1763 (commit e0eaee74), which forwards the host shared-cache path to the build provider so CRAFT_SHARED_CACHE is populated and reused. |