← Back to issue list

Support for "base: core"

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1819290
Type
issue
State
closed
Author
~sergiusens
Labels
19.04 19.04-blue lp-snappy
Created
Updated
Closed

Current evaluation

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.

Resolution: closed resolved

Reason: The author closed the issue after pointing to snapcore/snapcraft#2499, which merged as commit e1cc2b91c ('many: support for "base: core" in snapcraft.yaml'), making base: core acceptable and removing it from the emitted snap.yaml. cjwatson then confirmed Launchpad was reconfigured to match (new 'legacy-default' pseudo-base set as default, 'core' snap base pointed at stable/launchpad-buildd).

Evaluated by: mr-cal-bot

No scores available.

Issue body

New features of snapcraft are only triggered by the use of the base keyword. Developers targeting 16.04 as a base should be using core16, but considering that core16 is not ready yet we shall add support for use of core as a base and remove it from the resulting snap.yaml to not affect the internal snapd logic as core is not of type base (even though it is conceptually a base). For launchpad we will need to ensure that when "base: core" is found in snapcraft.yaml, that the snapcraft snap is used instead of the deb (the logic in general terms should be, if the base keyword is found, use the snapcraft snap, else the deb).

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved 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.
stealth/space-bunny-alpha — closed resolved Implemented via merged PR snapcore/snapcraft#2499 (commit e1cc2b91c, 'many: support for "base: core" in snapcraft.yaml'), allowing base: core in snapcraft.yaml and stripping it from the generated snap.yaml; Launchpad base config later updated by cjwatson.
stealth/space-bunny-alpha — closed resolved Added support for base: core in snapcraft.yaml, stripping it from generated snap.yaml. Merged in PR #2499 via commit e1cc2b91c.
qwen/qwen3.6-35b-a3b — — Fixed. Implementation strips base: core from snap.yaml and directs Launchpad to use the snapcraft snap instead of the deb. Closed as resolved.
qwen/qwen3.6-35b-a3b — — The request to support base: core in snapcraft.yaml was closed without implementation. After seven years of inactivity and snap base evolution, the feature was abandoned and superseded by newer framework versions.
qwen/qwen3.6-35b-a3b — — Implemented base: core support in snapcraft.yaml. The base field is stripped from snap.yaml to preserve snapd logic. Launchpad integration was updated to use the snapcraft snap when base is specified. Closed as resolved.
qwen3.6-35b-a3b-mtp-q6 — — Implemented support for base: core in snapcraft and updated Launchpad integration. Closed after feature adoption and subsequent standardization of core bases.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#2499 (confidence 95%)

    Merged PR referenced by the reporter in the closing comment; commit e1cc2b91c in snapcraft implements base: core handling.

  • Superseded By: snapcraft (launchpad)#1835532 (confidence 40%)

    Later base-snap build support (type: base) followed once 'core' was genuinely a base; this feature was later removed for core/core16.

Related issues

Issue Project State Summary Similarity
#2499 many: support for "base: core" in snapcraft.yaml snapcraft merged Merged PR #2499 added support for base: core in snapcraft.yaml and omitted it from generated snap.yaml; resolution: e1cc2b91c.
91%
#1706564 Please allow the new "base" key in snapcraft.yaml snapcraft (launchpad) closed Added support for snapcraft.yaml's top-level base key in merged snapcore/snapcraft PR #1419 (commit 024b9203c).
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%
#2761 Core20 base snapcraft merged Core20 base support was merged via #3579, moving Snapcraft to core20 in commit 18a974e01 (merge ed2baf8bd).
78%
#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.
77%
#5767 feat: add support for core26 (#5677) snapcraft merged Merged core26 support into Snapcraft, adding base recognition and unit-test coverage; core26 initially required build-base: devel.
77%
#4118 init: use core22 base for `snapcraft init` snapcraft merged 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.
76%
#1835532 snapcraft behavior for type: base snapcraft (launchpad) closed Implemented build-base support for base snaps; the proposed branch successfully built core20 using core18 before the issue was closed.
76%
#6499 fix: parse build-base for snapcraftctl validation snapcraft merged Fixed a validator bug preventing core22/core24 snaps without a `base` key from using `snapcraftctl`. Merged as #6499, resolving #6336.
75%
#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.
74%