Error message with empty parts is misleading
Metadata
Current evaluation
An empty parts mapping produced a misleading legacy schema error. The validator responsible was removed in ffb164b7a, leaving this old report obsolete for current Snapcraft.
Suggested action: close stale
Reason: The report includes a precise empty-parts reproducer, but its wording originated in the retired snapcraft_legacy validator. Commit ffb164b7a removed that component, and the current tree no longer contains the reported part-name error, so the obsolete path should not be backported.
Evaluated by: mr-cal-bot
Impact:
22
Quick Win:
17
Complexity:
8
Confidence:
90
Actionability:
82
Issue body
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
parts:
```
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.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
22
Quick Win:
17
Complexity:
8
Confidence:
90
Actionability:
82
|
close stale | An empty parts mapping produced a misleading legacy schema error. The validator responsible was removed in ffb164b7a, leaving this old report obsolete for current Snapcraft. | |
| stealth/space-bunny-alpha |
Impact:
22
Quick Win:
10
Complexity:
30
Confidence:
86
Actionability:
67
|
needs triage | An empty parts value yields a misleading null-as-part-name error; the exact report is still unlabeled and has received no maintainer response. | |
| qwen/qwen3.8-27b |
Impact:
15
Quick Win:
12
Staleness:
95
Complexity:
20
Confidence:
55
Support Request:
10
|
close stale | Misleading snapcraft error when 'parts' is empty in snapcraft.yaml: the message conflates a schema type error with a part-name validation error. Filed ~7.8 years ago by an external contributor, no labels, no maintainer response, no comments. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
15
Confidence:
85
Support Request:
10
|
close stale | Snapcraft shows a confusing validation error when the parts section in snapcraft.yaml is empty. The issue has been inactive for over 7 years with no maintainer response or labels. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
15
Confidence:
85
Support Request:
5
|
close stale | Snapcraft displays a confusing validation error when the 'parts' section in snapcraft.yaml is empty. The issue lacks labels, has zero comments, and has been inactive for over 7 years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
15
Confidence:
85
Support Request:
5
|
close stale | Report of a misleading validation error when snapcraft.yaml contains an empty parts section. Unlabelled, no maintainer interaction, inactive for over 7 years. |
Update history
| Date | Change |
|---|---|
| created |
Related issues
No related issues found above the similarity threshold.