← Back to issue list

snapcraft clean should require a minimal valid yaml with at least a name

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1777501
Type
issue
State
closed
Author
~sergiusens
Labels
18.10-project-loading
Created
Updated
Closed

Current evaluation

Abandoned without a recorded fix. The requirement to validate minimal YAML before snapcraft clean was never implemented.

Suggested action:

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
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

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1596596 in order to clean, the snapcraft.yaml has to be valid and the parts cache up-to-date snapcraft (launchpad) closed Abandoned without resolution. The reported limitation where snapcraft clean fails on invalid YAML or outdated cache remains unaddressed, as no fix or pull request was provided.
79%
#1608032 snapcraft crashes with useless message on bad YAML snapcraft (launchpad) closed Abandoned. Snapcraft crashed with an unhelpful error on invalid YAML. No fix or follow-up was provided.
72%
#2458 clean: error out on invalid or missing yaml snapcraft merged Merged. Modifies the clean command to fail if snapcraft.yaml is missing or lacks a name field, preventing accidental cleanup of non-snapcraft projects. Resolves LP #1777501. Approved, passed CI, and merged.
71%