packages/apt: use host state for apt cache (CRAFT-487)
Metadata
Current evaluation
Merged PR #118 unified stage and host APT caches using /var/lib/apt, removed the update interface, and made stage package-list refresh a no-op.
Resolution: closed resolved
Reason: PR #118 was merged by commit f7e2bb14. Its implementing commit, bd07e3b0, configured APT to use host state at /var/lib/apt and removed the obsolete update and refresh behavior.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Instead of having a split state for stage cache, rely on the
host's cache by setting the state directory to /var/lib/apt.
With this, we can remove the update() interface which is no
longer required.
This effectively causes the refresh_stage_packages_list()
to noop.
Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #118 unified stage and host APT caches using /var/lib/apt, removed the update interface, and made stage package-list refresh a no-op. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged craft-parts#118 in bd07e3b0, using the host APT cache at /var/lib/apt, removing update(), and making refresh_stage_packages_list() a no-op. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged. Replaces split stage apt cache with host cache at /var/lib/apt, removing update() and making refresh_stage_packages_list() a noop. Approved by two reviewers with passing CI. Compatible with snapcraft and craft-providers workflows. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged changes to use the host apt cache at /var/lib/apt instead of a split stage cache. The update() interface was removed and refresh_stage_packages_list() now no-ops, aligning with craft-parts cache unification. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3585 repo: use host state for apt cache (CRAFT-488) | snapcraft | merged | Merged #3585 via f817e34f2 (merge 0ae235a09), replacing split stage APT state with the host cache at /var/lib/apt for CRAFT-488. | |
| #3110 repo: use persistent cache for fetching stage packages | snapcraft | closed | PR #3110 (persistent cache for fetching stage packages) was closed unmerged with 0 reviews and 1 open maintainer question. Its dependency #3109 also closed unmerged; the feature was later delivered by merged PR #3585 (CRAFT-488) using host /var/lib/apt state. | |
| #1122 repo: cache stage packages for faster future use. | snapcraft | merged | Merged PR #1122 (20b422459), reusing cached stage packages and copying the apt cache into cleanbuild containers to fix LP #1661383. |