snapcraft gives conflicting advice for cleaning parts
Metadata
Current evaluation
⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.
Closed without a fix. Snapcraft incorrectly advised running snapcraft clean with part and step flags, which were unsupported. The author worked around it with a full clean. The report appears abandoned or superseded by later updates.
Suggested action: —
No scores available.
Issue body
I'm using multipass to build with snapcraft 3.0 from candidate.
----------------------------------------------------
Skipping build config (already ran)
Skipping build java (already ran)
Failed to reuse files from previous run: The 'build' step of 'jenkins' is out of date:
The 'install' part property appears to have changed.
To continue, clean that part's 'build' step by running `snapcraft clean jenkins -s build`.
Run the same command again with --debug to shell into the environment if you wish to introspect this failure.
An error occurred when trying to execute 'snapcraft snap' with 'multipass': returned exit code 2.
----------------------------------------------------
Ok, so let's do that...
----------------------------------------------------
alan@hal:~/Temp/jenkins$ snapcraft clean jenkins -s build
Build providers are still not feature complete, specifying parts or a step name is not yet supported.
----------------------------------------------------
WAT. Don't tell me to do stuff that doesn't work yet please :)
So I end up doing..
----------------------------------------------------
alan@hal:~/Temp/jenkins$ snapcraft clean
alan@hal:~/Temp/jenkins$ snapcraft
----------------------------------------------------
All works, but takes longer, of course
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Closed without a fix. Snapcraft incorrectly advised running snapcraft clean with part and step flags, which were unsupported. The author worked around it with a full clean. The report appears abandoned or superseded by later updates. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without discussion. The conflicting clean command guidance was abandoned or superseded as newer snapcraft versions resolved build provider limitations. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution. The conflicting snapcraft clean advice for multipass was likely abandoned or superseded by updated build provider features. Users must run a full clean instead of targeting specific parts or steps. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1615060 snapcraft clean is incomplete | snapcraft (launchpad) | closed | Reporting that snapcraft clean skips local .snap files was closed without comments or resolution, indicating the report was abandoned or left unresolved. | |
| #1734145 snapcraft clean <part-name> destroys everything when using containers | snapcraft (launchpad) | closed | Closed without documented fix or comments. The maintainer reported destructive behavior during container-based clean operations, but the issue was abandoned or superseded by subsequent Snapcraft updates. | |
| #1561328 cleaning a step on a dir built with an old snapcraft doesn't mention that a full clean is needed too | snapcraft (launchpad) | closed | Closed without resolution. The missing error guidance for cleaning steps on legacy snapcraft builds was not fixed. Issue appears abandoned due to age and zero comments. | |
| #1590811 "clean that part" advice doesn't tell you the command to use | snapcraft (launchpad) | closed | Closed without implementation. The suggestion to include the exact snapcraft clean command in error messages received no comments or resolution, indicating it was abandoned. | |
| #1746359 snapcraft cleanbuild --debug should provide guidance on build failure | snapcraft (launchpad) | closed | Closed as abandoned due to inactivity. The requested debug shell guidance for snapcraft cleanbuild was never implemented. | |
| #1800119 snapcraft cleanbuild | snapcraft (launchpad) | closed | Closed without resolution. The report details a PermissionError during snapcraft cleanbuild caused by restricted access to the .aptitude directory. With zero comments and no fix applied, the issue was abandoned or marked stale. | |
| #1834628 snapcraft does not recognize -s flag, only --step, while help says otherwise | snapcraft (launchpad) | closed | The snapcraft clean help text incorrectly advertised the -s flag, which was nonfunctional. The report was closed without resolution or code changes, remaining abandoned. | |
| #1578170 Your first snap: snapcraft clean needed before second snapcraft stage | snapcraft (launchpad) | closed | Closed and abandoned without resolution. The issue highlights a documentation gap where the Ubuntu snap tutorial skips steps on re-runs unless snapcraft clean is run first. No fix or update was applied. | |
| #1816 snapcraft update won't fetch from `SNAPCRAFT_PARTS_URI` | snapcraft | closed | Closed without resolution or comments. Likely superseded by the linked Launchpad bug report. No fixes or code changes were applied. | |
| #1567054 Snapcraft clean doesn't remove pkg-config override | snapcraft (launchpad) | closed | Closed without discussion or linked pull request. The report noted snapcraft clean leaves pkg-config override files in part directories. No fix was implemented, indicating the issue was abandoned. |