← Back to issue list

Reported error message building base: core18 with newer snapcrafts is wrong

View original Github issue

Metadata

Project
snapcraft
Number
#4246
Type
issue
State
closed
Author
dilyn-corner
Labels
—
Created
Updated
Closed

Current evaluation

Closed without implementation after a maintainer confirmed the unsupported-base error also affected core17 and suggested clearer wording; no resolving PR or commit was linked.

Resolution: closed stale

Reason: The report received no code change or linked resolution and was eventually closed. The sole maintainer comment agreed that a clearer unsupported-base error was needed but did not identify a fixing PR or commit.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### Bug Description `snapcraft` on `latest/` recently removed support for core18 bases. When building such a snap with these releases of `snapcraft` I would expect an error very early on during builds. However, the error instead occurs somewhere else and incorrectly attributes build failures to the plugin I've chosen, rather than the base. This is, of course, not true; the (for example) nil plugin *is* supported by `base: core18` snaps, I'm just not using a version of `snapcraft` which supports building such snaps. ### To Reproduce ``` snap install --channel=latest/edge snapcraft mkdir test-snap && cd test-snap snapcraft init sed -i 's/core22/core18/' snap/snapcraft.yaml snapcraft --use-lxd ``` ### Environment Running at least snapcraft rev 9410, but any sufficiently recent release beyond 7.4.3 will probably exhibit this behavior -- using 7.x risks still works. Running on Ubuntu 23.04 using LXD as the build provider. ### snapcraft.yaml ```shell name: my-snap-name # you probably want to 'snapcraft register <name>' base: core18 # the base snap is the execution environment for this snap version: '0.1' # just for humans, typically '1.2+git' or '1.3.2' summary: Single-line elevator pitch for your amazing snap # 79 char long summary description: | This is my-snap's description. You have a paragraph or two to tell the most important story about your snap. Keep it under 100 words though, we live in tweetspace and your description wants to look good in the snap store. grade: devel # must be 'stable' to release into candidate/stable channels confinement: devmode # use 'strict' once you have the right plugs and slots parts: my-part: # See 'snapcraft plugins' plugin: nil ``` ### Relevant log output ```shell dilyn@Ares:~/tt -> snapcraft --use-lxd Starting Snapcraft 7.4.1.post31+gitf5b2f2e0 Logging execution to '/home/dilyn/.local/state/snapcraft/log/snapcraft-20230629-214349.990383.log' Launching a container. Waiting for container to be ready Waiting for network to be ready... snap "core18" has no updates available The plugin 'nil' does not support snaps using base 'core18'. Run the same command again with --debug to shell into the environment if you wish to introspect this failure. ``` ``` ### Additional context _No response_

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed stale Closed without implementation after a maintainer confirmed the unsupported-base error also affected core17 and suggested clearer wording; no resolving PR or commit was linked.
stealth/space-bunny-alpha — closed stale Closed without a fix after @sergiusens confirmed the misleading plugin error also affects other unsupported bases and suggested a clearer message.
qwen/qwen3.6-35b-a3b — — Closed without resolution. A maintainer noted the error applies to any unsupported base like core17 and suggested improving the message to clarify base incompatibility instead of blaming the plugin.
qwen/qwen3.6-35b-a3b — — Closed without a fix. The report highlighted a misleading error when building core18 snaps with newer snapcraft. A maintainer suggested improving the message to clearly indicate base incompatibility.
qwen/qwen3.6-35b-a3b — — Abandoned without a fix. A maintainer acknowledged the misleading error when building core18 snaps with newer snapcraft and suggested improving the message to clarify base deprecation rather than blaming the plugin.
qwen3.6-35b-a3b-mtp-q6 — — Closed without a fix. The misleading error message for unsupported core18 bases remains unchanged, though maintainers acknowledged the feedback and noted the error could be improved.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1976221 Missing linker base while building with core22 base snapcraft (launchpad) closed Resolved by upgrading from legacy Snapcraft to Snapcraft 7.x, which correctly builds core22 snaps; no code fix or linked PR was recorded.
76%
#1862256 snapcraft should complain loudly when building base: core20 snap on i386 snapcraft (launchpad) closed Closed as superseded: improved architecture parsing rejects unsupported core20/i386 builds, making a dedicated check unnecessary; snapcraft#4392 improved this handling.
75%
#1752538 Building snap using base-18 is broken with 2.39 snapcraft (launchpad) closed Closed without an upstream fix; the reporter built MAAS with base-18 using a local Snapcraft patch, but linked no resolving PR or commit.
74%
#1839604 build-base seems broken snapcraft (launchpad) open Closed as implemented: current Snapcraft supports `base: bare` with a required `build-base`, including core22/core24/core26, and documents the configuration.
74%
#1830389 misleading warning when building base: core18 snap with 16.04 snapcore/snapcraft docker snapcraft (launchpad) closed Closed as stale without a code fix; a maintainer noted Snapcraft's Dockerfiles had changed substantially and later moved to Rocks, making the reported 16.04 warning obsolete.
74%
#6187 Fix snapcraft try error to show actual base snapcraft closed Closed unmerged over contribution-guideline concerns; PR #6193 later fixed #6186 by using the effective project base in commit bcae1c3ed.
71%
#4177 core18: removal snapcraft merged Merged PR snapcore/snapcraft#4177 (May 2023) dropped core18 base support and its unit/spread tests, fixing #4165 via commits 40136ea9b, 77edc734b and ed423b6a8; core18 was EOL.
70%
#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.
70%
#6450 fix(test): error for core22 snaps snapcraft closed PR #6450 proposed an early core22 error for snapcraft test, but was closed unmerged with review pending; #5479 remains open.
70%
#5003 Building snap with `core20` failed with non-informative error message snapcraft open The misleading core20 snapcraft-pack error was fixed by merged PR #5616 (commit b511004af), which ran the lifecycle for legacy core20 snaps.
70%