unused and potentially confusing support for plugs/slots at a part level in the snapcraft.yaml schema
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Medium
|
Zygmunt Krynicki | ||
snapcraft (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Yakkety |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* snapcraft has a schema that describes allowed snapcraft.yaml files. Part of this schema describes plugs and slots that are defined as the level of a part (so not globally and not at the level of an app).
* keeping this code in the schema can create potential confusion for users who expect snapcraft to validate the input to be correct.
* the change is minimal, altering the schema only
[Test Case]
* create a snapcrat.yaml with a part defining a plug and a slot
* run snapcraft
* snapcraft should complain about the plug/slot definition at a part level
...
parts:
foo:
plugin: nil
plugs: [iface1]
slots: [iface2]
...
[Regression Potential]
* snaps that used parts defining plugs or slots will no longer build
* snaps that will be built after removing the offending declarations will behave exactly as before so the regression potential is minimal
[Other Info]
Changed in snapcraft: | |
status: | New → In Progress |
assignee: | nobody → Zygmunt Krynicki (zyga) |
Changed in snapcraft: | |
milestone: | none → 2.9 |
importance: | Undecided → Medium |
Changed in snapcraft (Ubuntu Xenial): | |
milestone: | none → xenial-updates |
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
https:/ /github. com/ubuntu- core/snapcraft/ pull/503