Terse error message when package cannot be found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Medium
|
Sergio Schvezov | ||
snapcraft (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Yakkety |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I typo'ed the nonexistent libcap instead of libcap2 in stage-packages. The resulting error message (snapcraft 2.7) wasn't helpful:
ev@elsa:
Preparing to pull whoopsie
Hit http://
Hit http://
Hit http://
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.
description: | updated |
Changed in snapcraft: | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Sergio Schvezov (sergiusens) |
milestone: | none → 2.10 |
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
description: | updated |
Changed in snapcraft (Ubuntu Xenial): | |
milestone: | none → xenial-updates |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
https:/ /github. com/ubuntu- core/snapcraft/ pull/524