snapcraft init creates boilerplate which opaquely fails to build by default
Metadata
Current evaluation
⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.
Closed without resolution. The report recommended updating snapcraft init to default to core22 instead of core20, preventing opaque build failures and CLI mismatches. No fix or pull request was submitted, leaving the request abandoned.
Suggested action: —
No scores available.
Issue body
In a similar vein to https://bugs.launchpad.net/snapcraft/+bug/1990549
Using snapcraft 7's snapcraft init to create a boilerplate snapcraft.yaml defaults to a base of core20. However, snapcraft 7 will use the flags and behaviors of snapcraft 6 for snaps with a base of core20. This means that snapcraft --help displays options which are incongruent to what is actually available when building the snap, and no useful or informative warning is given as to why particular options fail.
Because snapcraft's behavior changes depending on the base for the snap, snapcraft 7 should create a base: core22 boilerplate yaml. This would align default behavior with expected options.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The report recommended updating snapcraft init to default to core22 instead of core20, preventing opaque build failures and CLI mismatches. No fix or pull request was submitted, leaving the request abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed and implemented. The default base for snapcraft init was updated from core20 to core22, aligning build behavior with snapcraft 7 and resolving opaque build failures. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without comments or resolution details. The proposal to change snapcraft init's default base from core20 to core22 was abandoned, with no fix or merge documented. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1939713 snapcraft init create base: core18 snap | snapcraft (launchpad) | closed | Closed without direct resolution, likely abandoned due to inactivity. Subsequent Snapcraft releases updated the init default to core20 and core22, effectively resolving the reported behavior. | |
| #1866300 snapcraft fails to build core20 snap | snapcraft (launchpad) | closed | Closed without a documented fix. The multipass hang and lxd traceback preventing core20 builds were not addressed, indicating the report was abandoned or superseded by newer snapcraft versions. | |
| #1842328 snapcraft make plugin does not support core20 | snapcraft (launchpad) | closed | Closed without resolution or comments, likely abandoned. The core20 support gap for the snapcraft make plugin remains unresolved. | |
| #1604326 snapcraft init doesn't fail if there is a .snapcraft.yaml file | snapcraft (launchpad) | closed | Closed without resolution. The snapcraft init command remains unchanged and still creates snapcraft.yaml when .snapcraft.yaml exists, indicating the bug was abandoned or superseded by newer project changes. | |
| #2019931 snapcraft is ignoring the "assumes" section | snapcraft (launchpad) | closed | Bug report indicating snapcraft omits the assumes section from snap.yaml when using core22 base. Closed after two days with zero comments, indicating the report was abandoned without resolution. | |
| #1448 snapcraft build using manifest.yaml | snapcraft | closed | Closed without discussion or comments. The issue appears abandoned or superseded by newer snapcraft build workflows. No resolution or merge details were recorded. | |
| #1978844 snapcraft try not available for core22-based snap | snapcraft (launchpad) | closed | Closed without resolution or comments. The snapcraft try command remains unavailable for core22-based snaps, with attempts failing or falling back to legacy implementations. | |
| #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. | |
| #1620843 Updated boilerplate for 'snapcraft init' | snapcraft (launchpad) | closed | Closed without implementation. The proposed snapcraft init boilerplate was likely superseded by a later template update. No further action was taken. | |
| #1803776 snapcraft init missing a base | snapcraft (launchpad) | closed | Closed without resolution. The base requirement for snapcraft init was later implemented in subsequent releases, superseding this report. |