repo: always refresh cache when build packages are required
Metadata
Current evaluation
Merged #3099 in commit bcc1a08fa, ensuring Snapcraft refreshes the package cache whenever a requested build package is not already installed.
Resolution: closed resolved
Reason: The approved change was merged as commit bcc1a08fa. It updates repository package handling to refresh the cache when a requested build package is missing locally.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Make sure cache is up to date by refreshing whenever a package
being requested is not already installed.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged #3099 in commit bcc1a08fa, ensuring Snapcraft refreshes the package cache whenever a requested build package is not already installed. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged #3099 to always refresh the package cache when a requested build package is not already installed. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged to ensure the package cache refreshes whenever a requested build package is not already installed. Approved by one reviewer, modifying eight files with 199 additions and 120 deletions. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged changes ensuring the package cache refreshes whenever required build packages are missing, guaranteeing up-to-date dependencies during builds. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1875655 Random "Could not find a required package in 'build-packages'" errors | snapcraft (launchpad) | closed | Fixed by merged canonical/snapcraft#3099 (commit bcc1a08fa), ensuring the package cache is refreshed when required build packages are unavailable. | |
| #2030 Properly invalidate the cache if sources change | snapcraft | closed | Fixed by merged PR #2079 (commit d879b2e3a): Snapcraft now catches apt cache update failures and clears the package index on hash mismatches. |