yaml validation errors are not helpful if the file is empty
Metadata
Current evaluation
charmcraft pack gives a generic 'Invalid file: metadata.yaml' error when the file is empty (comments only), making it hard to diagnose. A maintainer acknowledged it in June 2025 and left it open as low priority; the error is still generic in current code.
Suggested action: keep open
Reason: Maintainer @lengau explicitly triaged this on 2025-06-13 ('I'm going to leave this open if anyone else wants to do it'), so it is acknowledged and valid, not stale-closable. I confirmed in charmcraft/preprocess.py that the empty-file case still hits the generic 'Invalid file: metadata.yaml' CraftValidationError, so the problem remains applicable. The fix is a small UX improvement (special-case empty/None YAML load), but low priority per the maintainer.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
25
Quick Win:
21.25
Staleness:
70
Complexity:
15
Confidence:
85
Support Request:
10
|
keep open | charmcraft pack gives a generic 'Invalid file: metadata.yaml' error when the file is empty (comments only), making it hard to diagnose. A maintainer acknowledged it in June 2025 and left it open as low priority; the error is still generic in current code. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
55
Complexity:
20
Confidence:
90
Support Request:
10
|
keep open | Empty YAML files produce unhelpful validation errors in charmcraft. Reported as a bug, acknowledged by a maintainer, but currently unassigned and waiting for community contribution. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
80
Complexity:
20
Confidence:
85
Support Request:
10
|
keep open | Unhelpful validation error when metadata.yaml is empty. Acknowledged by maintainers but marked low priority with no engineering time allocated. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
75
Complexity:
15
Confidence:
85
Support Request:
10
|
keep open | Unhelpful validation error for empty YAML files. Maintainer acknowledged and left open as low priority. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
65
Complexity:
15
Confidence:
95
Support Request:
0
|
keep open | charmcraft pack shows unhelpful validation errors for empty YAML files. The issue is open and available for community contribution, with no immediate engineering plans to fix it. |
Update history
No update history recorded yet.
Related issues
No related issues found above the similarity threshold.