← Back to issue list

init: use core22 base for `snapcraft init`

View original Github issue

Metadata

Project
snapcraft
Number
#4118
Type
pull request
State
merged
Author
mr-cal
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #4118 (mr-cal, CRAFT-1670): snapcraft init now scaffolds core22 as the default base instead of core20, with the command moved from snapcraft_legacy/ to snapcraft/ and a spread test added. Squash-merged as 4afc9e4c9.

Resolution: closed resolved

Reason: The pull request itself was merged into master and recorded as commit 4afc9e4c9 'init: use core22 base for `snapcraft init` (#4118)', changing the default template base from core20 to core22 (+215/-161 across 10 files).

Evaluated by: mr-cal-bot

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
stealth/space-bunny-alpha — closed resolved Merged PR #4118 (mr-cal, CRAFT-1670): snapcraft init now scaffolds core22 as the default base instead of core20, with the command moved from snapcraft_legacy/ to snapcraft/ and a spread test added. Squash-merged as 4afc9e4c9.
stealth/space-bunny-alpha — closed resolved PR #4118 merged: snapcraft init now defaults to core22 instead of core20, with the command moved from snapcraft_legacy to snapcraft and a spread test added. Commit 4afc9e4c9.
stealth/space-bunny-alpha — closed resolved Merged PR #4118 changes `snapcraft init` to default to core22 instead of core20, moves the command from snapcraft_legacy to snapcraft, and adds a spread test.
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%.

Update history

No update history recorded yet.

Related work

  • Related To: snapcore/snapcraft#4338 (confidence 35%)

    Later refactor commit fb2777fe1 touched snapcraft/commands/init.py, superseding the module layout introduced by this PR.

Related issues

Issue Project State Summary Similarity
#1939713 snapcraft init create base: core18 snap snapcraft (launchpad) closed Snapcraft init was updated to scaffold core20 instead of core18 by merged canonical/snapcraft#3587 (merge commit f91632aab).
84%
#4186 snap: migrate to core22 snapcraft merged PR #4186 merged, moving the Snapcraft snap's own build environment to base core22 (8 files, +71/-70), landing as commit 60033305b and closing the core22 migration issue #4166.
81%
#3579 snap: move base to core20 (CRAFT-509) snapcraft merged Merged PR #3579 via ed2baf8bd, moving Snapcraft's own snap to the core20 base; implementation commit 18a974e01.
80%
#3583 build providers: snapcraft's new base is core20 (CRAFT-544) snapcraft merged Merged PR #3583 via 2b2d7dbcf, replacing build providers' injected core18 base with core20 to match Snapcraft's new base.
80%
#2520 snap: set core as a base snapcraft merged Merged PR #2520 as commit ed57b4bbf, setting Snapcraft's own snap base to core so it could use functionality from Craft 3.x.
78%
#6150 docs: use core26 as the default base snapcraft merged Merged #6150 in commit 9b6d7fa9a, documenting core26 as the default base, publishing Snapcraft 9 release notes, and standardizing core/base terminology.
78%
#2761 Core20 base snapcraft merged Core20 base support was merged via #3579, moving Snapcraft to core20 in commit 18a974e01 (merge ed2baf8bd).
77%
#4166 Migrate Snapcraft to core22 snapcraft closed Snapcraft's own snap was migrated to base core22 by merged PR #4186 (commit 60033305b, 8 files, +71/-70), closing this tracking issue.
77%
#3981 commands, lifecycle: provide snapcraft try for core22 snapcraft merged Merged in snapcore/snapcraft#3981 (commit 2691262b8), adding snapcraft try for core22 by mounting the host prime directory into the build instance and priming without packing.
76%
#1819290 Support for "base: core" snapcraft (launchpad) closed Implemented by merged snapcore/snapcraft#2499 (commit e1cc2b91c), adding 'base: core' support in snapcraft.yaml and stripping it from generated snap.yaml; Launchpad base config updated by cjwatson.
76%