Properly invalidate the cache if sources change
Metadata
Current evaluation
Fixed by merged PR #2079 (commit d879b2e3a): Snapcraft now catches apt cache update failures and clears the package index on hash mismatches.
Resolution: closed resolved
Reason: Issue #2030 was resolved by PR #2079, which explicitly fixes this issue and LP#1747715. Commit d879b2e3a catches apt.cache.FetchFailedException and clears the index after hashsum mismatches.
Evaluated by: mr-cal-bot
No scores available.
Issue body
[Newer appstream causes snapcraft to fail](https://bugs.launchpad.net/snapcraft/+bug/1747715)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #2079 (commit d879b2e3a): Snapcraft now catches apt cache update failures and clears the package index on hash mismatches. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed stale apt-cache handling in merged PR #2079 (d879b2e3a), including index cleanup after hash mismatches; the PR lists LP#1747715 as fixed. | |
| stealth/space-bunny-alpha | — | closed stale | Unable to identify the project, resolving PR, or commit; the provided issue contains no closure details beyond a linked Launchpad bug. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without comments or linked pull requests. The cache invalidation fix appears resolved or superseded, likely addressed upstream via the linked Launchpad bug regarding appstream compatibility. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation. The report links to an external Launchpad bug regarding appstream causing snapcraft failures, suggesting the tracking was handled elsewhere or abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without discussion. No resolution or merge details were provided. The cache invalidation fix appears superseded or resolved externally via the linked Launchpad bug. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without a direct fix; references external Launchpad bug #1747715 regarding appstream compatibility issues. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
snapcraft#2079
(confidence 100%)
Merged PR that implemented the cache invalidation and error-handling fix in commit d879b2e3a.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3983 repo: raise error when populating the apt cache directory fails | snapcraft | merged | Merged PR #3983 in commit 341037573, making Snapcraft raise a clear error when /etc/apt cannot be copied into its cache (CRAFT-1421). | |
| #3099 repo: always refresh cache when build packages are required | snapcraft | merged | Merged #3099 in commit bcc1a08fa, ensuring Snapcraft refreshes the package cache whenever a requested build package is not already installed. | |
| #617 snapcraft update if there is no cache | snapcraft | merged | Merged in PR #617 as commit 9ae9f0114, fixing snapcraft update when no cache exists and removing obsolete test code. | |
| #1583236 snapcraft APT sources checking too strict | snapcraft (launchpad) | open | Snapcraft still turns any apt-get update failure into a package-list refresh error; this old report needs a modern reproducer and a policy for distinguishing harmless source failures. |