snapcraft sometimes generates invalid stage-packages entries in manifest.yaml
Metadata
Current evaluation
Fixed by snapcraft#3047 (commit 2e6549953), correcting install_stage_packages() output so manifest stage-packages entries are valid. The fix landed on edge; no release was affected.
Resolution: closed resolved
Reason: The resolving PR #3047 was merged as commit 2e6549953 and fixed the invalid returned package strings. The reporter confirmed the fix was available on edge and noted that it never reached a Snapcraft release.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Recent snap-store snaps started to error in the snap USN notifications service due to entries like this in the snap/manifest.yaml:
stage-packages:
- adwaita-icon-theme=adwaita-icon-theme=3.28.0-1ubuntu1
This was found with, for example, revision https://dashboard.snapcraft.io/snaps/snap-store/revisions/385/ with the following build url: https://launchpad.net/~ubuntu-desktop/+snap/snap-store/+build/908905.
snapcraft-version: 3.11+git50.g63fb53c3
The completed manifest.yaml for this build is attached.
I would consider this at least a 'High' priority item since failure to parse the manifest.yaml means that the snap is not scanned and so publishers won't be aware of when USNs affect their snap.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by snapcraft#3047 (commit 2e6549953), correcting install_stage_packages() output so manifest stage-packages entries are valid. The fix landed on edge; no release was affected. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by canonical/snapcraft#3047 (commit 2e6549953), correcting stage-package version strings in manifest.yaml; the fix reached edge and never affected a stable release. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed in canonical/snapcraft#3047 (commit 2e6549953): stage-package output now uses valid resolved version strings. The fix shipped to edge but had not affected a stable release. | |
| stealth/space-bunny-alpha | — | closed stale | Closed without a recorded fix after 2,352 days, leaving the invalid stage-packages manifest report abandoned without discussion. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The report detailed invalid duplicate stage-packages entries in manifest.yaml causing USN notification failures. With zero comments and no applied fix, the issue was abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned. Invalid stage-packages entries in manifest.yaml caused USN notification parsing failures. Closed without comments or a fix after three days. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution or comments. The duplicate stage-packages entries in manifest.yaml were likely abandoned or resolved upstream. No explicit fix or merge details provided. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without documented resolution or fix. The invalid stage-packages duplication in manifest.yaml remains unaddressed. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcraft#3047
(confidence 100%)
The issue comments identify this PR as the fix, and repository history records it as commit 2e6549953.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1983009 Snapcraft 7.1.0 fails to find stage package when cross-compiling | snapcraft (launchpad) | closed | Fixed by canonical/snapcraft#3416 (commit 8f418e3d9), restoring core20 behavior so stage packages come from build-on repositories during cross-compilation. | |
| #1477904 snapcraft.yaml needs to make all stages dirty (was: the can't add file without recreating entire package) | snapcraft (launchpad) | closed | snapcraft.yaml changes now invalidate and rerun all lifecycle steps, implemented by canonical/snapcraft PRs #442–#448; final pull-stage fix landed as da1411df0. | |
| #3211 pluginhandler: fix stage-snaps for v2 plugins | snapcraft | merged | Merged in canonical/snapcraft#3211 (0870f1738), fixing v2 stage-snaps handling and preventing prepare_build from discarding unpacked snaps. |