invalid package name in "build-packages" message is not very helpful
Metadata
Current evaluation
Fixed by merged ubuntu-core/snapcraft PR #355 (f4b75f95a), which updated build-packages errors to name the invalid package.
Resolution: closed resolved
Reason: PR #355 was linked as the resolution and merged in commit f4b75f95a. Its change, 8bc9e0599, exposed the invalid build package in the error.
Evaluated by: mr-cal-bot
No scores available.
Issue body
When a named build-packages component is not a valid package name, snapcraft's error message could be more helpful.
"Could not find all the "build-packages" required in snapcraft.yaml"
It could at least emit the bad name it searched for and couldn't find.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged ubuntu-core/snapcraft PR #355 (f4b75f95a), which updated build-packages errors to name the invalid package. | |
| stealth/space-bunny-alpha | — | closed resolved | Improvement request to name the offending package in the build-packages error was fixed by merged PR #355 (commit 8bc9e0599), which surfaces apt's KeyError for the invalid build-package; issue closed 2016-03-01. | |
| stealth/space-bunny-alpha | — | closed resolved | Build-package errors now identify the invalid package; change 8bc9e0599 was merged through PR #355. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The request to improve build-packages error messages by including invalid names was abandoned due to prolonged inactivity and zero comments. No fix or implementation was provided. | |
| qwen/qwen3.6-35b-a3b | — | — | Snapcraft's error message for invalid 'build-packages' components was requested to include the specific invalid name for better clarity. The issue was closed. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
ubuntu-core/snapcraft#355
(confidence 99%)
Merged change that adds the offending build-package name to the error.
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. | |
| #1541353 'snapcraft upload' says 'Invalid package filename.' | snapcraft (launchpad) | closed | Fixed by merged canonical/snapcraft PR #298: upload reads the snap name from snapcraft.yaml instead of parsing the built package. |