← Back to issue list

Terse error message when package cannot be found

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1568131
Type
issue
State
closed
Author
~ev
Labels
verification-done
Created
Updated
Closed

Current evaluation

Missing stage-packages now produce a clear error. Fixed by merged PR canonical/snapcraft#524 (0c05bd66f), released in Snapcraft 2.10 and verified in 2.10.1.

Resolution: closed resolved

Reason: PR #524 explicitly fixed this Launchpad issue and was merged as commit 0c05bd66f. QA verified Snapcraft 2.10 reported “no such package,” and the fix was recorded in package version 2.10.1.

Evaluated by: mr-cal-bot

No scores available.

Issue body

I typo'ed the nonexistent libcap instead of libcap2 in stage-packages. The resulting error message (snapcraft 2.7) wasn't helpful: ev@elsa:~/branches/whoopsie/snappy$ snapcraft Preparing to pull whoopsie Hit http://security.ubuntu.com/ubuntu xenial-security InRelease Hit http://us.archive.ubuntu.com/ubuntu xenial InRelease Hit http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease Fetched 0 B in 0s (0 B/s) libcap [Impact] * There is no error when the package doesn't exist. * What snapcraft does is confusing and leads to wasted time trying to understand what was wrong. [Test Case] * Create an snapcraft.yaml with an unexisting stage-package. * Run snapcraft. * Verify that the error is clear. [Regression Potential] * Existing stage packages could be affected. Run snapcraft with an existing package to confirm it still works.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Missing stage-packages now produce a clear error. Fixed by merged PR canonical/snapcraft#524 (0c05bd66f), released in Snapcraft 2.10 and verified in 2.10.1.
stealth/space-bunny-alpha — closed resolved Terse error when a stage-package doesn't exist was fixed by PR canonical/snapcraft#524 (commit 0c05bd66f), merged and shipped in snapcraft 2.10; LP #1568131. Verified by elopio on xenial-proposed2.10, then closed as fixed in 2.10.1.
stealth/space-bunny-alpha — closed resolved Missing or misspelled stage-packages now produce a clear error. Launchpad bug 1568131 was closed as fixed and verified.
qwen/qwen3.6-35b-a3b — — Fixed and verified. Updated snapcraft to display a clear error message when a stage-package is missing or misspelled, replacing the previous unhelpful output.
qwen/qwen3.6-35b-a3b — — Fixed unhelpful error messages when snapcraft cannot locate stage-packages. The issue was resolved and verified, improving error reporting for missing packages.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#524 (confidence 100%)

    Merged commit 0c05bd66f improved errors for missing or misspelled stage-packages and explicitly fixed this issue.

Related issues

Issue Project State Summary Similarity
#1983009 Snapcraft 7.1.0 fails to find stage package when cross-compiling snapcraft (launchpad) closed Fixed by canonical/snapcraft#3416 (commit 8f418e3d9), restoring core20 behavior so stage packages come from build-on repositories during cross-compilation.
73%