"snapcraft init" doesn't generate a valid template
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
Using snapcraft 2.8.4 in xenial
Getting a source and doing "snapcraft init", editing the snapcraft.yaml to file the info required and doig "snapcraft build" leads to an error "'parts' is a required property" ... if that's required the default template should include it or at least a comment saying "you need to add a parts section, see documentation on ..."
[Impact]
* It's hard for a user to get started.
* The init template will contain more info, and will be snapcraft-able.
[Test Case]
* Run snapcraft init
* Run snapcraft
* Verify that you get a valid snap.
[Regression Potential]
* The only risk would be that the error message is worse than before. We added a test to check that there is no error message anymore.
Changed in snapcraft: | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Sergio Schvezov (sergiusens) |
milestone: | none → 2.10 |
Changed in snapcraft: | |
status: | Triaged → In Progress |
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/528