init: use core22 base for `snapcraft init`
Metadata
Current evaluation
Merged. Updates snapcraft init to use core22 as the default base instead of core20. The command was relocated from snapcraft_legacy to snapcraft, and a spread test was added. Approved by reviewer and passed CI.
Suggested action: —
No scores available.
Issue body
- [X] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [X] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [X] Have you successfully run `make lint`?
- [X] Have you successfully run `pytest tests/unit`?
-----
:heavy_check_mark: Change `snapcraft init`'s default base from `core20` to `core22`
:heavy_check_mark: Move command from `snapcraft_legacy/` to `snapcraft/`
:heavy_check_mark: Add a spread test
#### Source
- https://bugs.launchpad.net/snapcraft/+bug/1990550
(CRAFT-1670)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. Updates snapcraft init to use core22 as the default base instead of core20. The command was relocated from snapcraft_legacy to snapcraft, and a spread test was added. Approved by reviewer and passed CI. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into main. Updated snapcraft init to use core22 as the default base, migrated the command from snapcraft_legacy to snapcraft, and added a spread test. Diff coverage achieved 100%. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into main. Updates snapcraft init default base from core20 to core22, relocates the command from the legacy package to the main module, and adds a spread test. Achieved 100% diff coverage. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3583 build providers: snapcraft's new base is core20 (CRAFT-544) | snapcraft | merged | Merged into master. Replaced core18 injection with core20 as the new snapcraft base. Approved by one reviewer, passed CI, and achieved 100% diff coverage. | |
| #6150 docs: use core26 as the default base | snapcraft | merged | Merged documentation updates for Snapcraft 9, setting core26 as the default base and standardizing terminology. Approved by two reviewers and passed CI checks. Force-pushed to resolve a squash-merge email error before final merge. | |
| #3579 snap: move base to core20 (CRAFT-509) | snapcraft | merged | Merged updates the snap base to core20. Approved by two reviewers with passing CI checks. Changes affect 13 files, increase coverage by 0.07%, and update initialization templates to core20. | |
| #3981 commands, lifecycle: provide snapcraft try for core22 | snapcraft | merged | Merged. Adds snapcraft try support for core22 by mounting a host prime directory into the instance for lifecycle priming without packing. Approved by one reviewer, passed CI, and modified 8 files. | |
| #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. | |
| #6338 docs: update supported bases | snapcraft | merged | Merged documentation update reflecting Snapcraft 9 as the preferred version for core22, core24, and core26 bases. Approved by three reviewers and passed CI checks. | |
| #4166 Migrate Snapcraft to core22 | snapcraft | closed | Migrated Snapcraft to core22 by updating snapcraft.yaml and integrating the wheel factory snap for faster builds. Completed and closed via pull request #4186. | |
| #2761 Core20 base | snapcraft | merged | Merged. Implements Core20 base support in Snapcraft. Reviewers clarified channel defaults and runtime base installation, confirming stable remains default while devel targets pre-release. | |
| #6193 fix: snapcraft try error shows effective base | snapcraft | merged | Merged fix for #6186 that updates the snapcraft try error message to accurately display the effective base using get_effective_base(). Approved by reviewers and merged with added unit tests for core24 and core26. | |
| #2520 snap: set core as a base | snapcraft | merged | Merged after reviewer approval and passing CI checks. Configures core as the snap base to enable snapcraft 3.x build functionality. The change modifies 2 files with 17 additions and 10 deletions. |