snapcraft clean should require a minimal valid yaml with at least a name
Metadata
Current evaluation
Added validation so snapcraft clean rejects missing or invalid snapcraft.yaml without a name; fixed by merged PR #2458 (commit bf5dbbb3f).
Resolution: closed resolved
Reason: PR #2458 was merged and implemented the requested validation in commit bf5dbbb3f. The issue was closed with a link to that resolving PR.
Evaluated by: mr-cal-bot
No scores available.
Issue body
We need to ensure we have a minimal snapcraft project before just straight out cleaning to avoid a situation where we clean something by accident when not inside an actual snapcraft project
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Added validation so snapcraft clean rejects missing or invalid snapcraft.yaml without a name; fixed by merged PR #2458 (commit bf5dbbb3f). | |
| stealth/space-bunny-alpha | — | closed resolved | Snapcraft clean now validates snapcraft.yaml before cleanup, erroring when it is missing or lacks a name. Fixed by merged PR #2458 in commit bf5dbbb3f. | |
| stealth/space-bunny-alpha | — | closed resolved | Implemented by merged PR canonical/snapcraft#2458 (commit bf5dbbb3f): snapcraft clean now errors when snapcraft.yaml is missing or lacks a name. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned without a recorded fix. The requirement to validate minimal YAML before snapcraft clean was never implemented. | |
| qwen/qwen3.6-35b-a3b | — | — | Feature request to require minimal YAML validation in snapcraft clean was closed without implementation. No fixes or pull requests were linked, indicating the request was deferred or abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | Requesting snapcraft clean to validate a minimal YAML with a name was closed without implementation or discussion. The enhancement appears abandoned or deferred pending future project loading improvements. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Abandoned. The request to enforce minimal valid YAML validation before running snapcraft clean was closed without implementation or resolution. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcore/snapcraft#2458
(confidence 100%)
Merged PR explicitly linked in the issue comment and identified as the fix.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2458 clean: error out on invalid or missing yaml | snapcraft | merged | Merged #2458 via commit bf5dbbb3f, making clean fail safely when snapcraft.yaml is missing, invalid, or lacks a project name. | |
| #1596596 in order to clean, the snapcraft.yaml has to be valid and the parts cache up-to-date | snapcraft (launchpad) | closed | Full-workspace `snapcraft clean` no longer needs a valid snapcraft.yaml or updated parts cache. Fixed by merged snapcore/snapcraft PR #1007 (commit bacf75dfe); maintainer kyrofa pointed to it when closing LP#1596596. |