Error message with empty parts is misleading

Bug #1802312 reported by Adam Collard on 2018-11-08
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

With a snapcraft.yaml as follows:

name: fail-tester
version: git
version: 0.1
summary: A Snap that fails in configurable ways
description: >
  This snap is useful for testing snap hooks.

  By setting configuration on the snap, one can control which hooks will fail.

grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots

snapcraft fails but with a strange message:

Issues while validating snapcraft.yaml: The 'parts' property does not match the required schema: <ValidationError: "None is not of type 'object'"> is not a valid part name. Part names consist of lower-case alphanumeric characters, hyphens, plus signs, and forward slashes. As a special case, 'plugins' is also not a valid part name.

description: updated
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers