The base field created by snapcraft init should match the docker equivalent image or raise an error
Metadata
Current evaluation
Closed as stale after prolonged inactivity; the maintainer noted that Snapcraft's Dockerfiles had changed substantially and later moved to rocks.
Resolution: closed stale
Reason: Maintainer @~mr-cal explicitly closed the report as stale because the Docker implementation had changed significantly since 2019 and moved to rocks. No resolving PR or commit was identified.
Evaluated by: mr-cal-bot
No scores available.
Issue body
(See also https://bugs.launchpad.net/snapcraft/+bug/1830389)
Running snapcraft init inside the 16.04 snapcore/snapcraft docker produces a snapcraft.yaml with base: core18. You'll likely add some *-packages and this will break. Snapcraft init should select base: core if inside a 16.04 Docker, base: core18 if in 18.04 Docker, or error otherwise.
It may be worth moving the snapcore/snapcraft:latest, :beta, and :candidate images to 18.04 (but worth weighing the impact to existing users).
~/example❯ docker run -v $(pwd):$(pwd) -w $(pwd) snapcore/snapcraft:beta snapcraft init
Locale not set! Snapcraft will temporarily use C.UTF-8
Created snap/snapcraft.yaml.
Go to https://docs.snapcraft.io/the-snapcraft-format/8337 for more information about the snapcraft.yaml format.
~/example❯ cat snap/snapcraft.yaml
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
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed stale | Closed as stale after prolonged inactivity; the maintainer noted that Snapcraft's Dockerfiles had changed substantially and later moved to rocks. | |
| stealth/space-bunny-alpha | — | closed stale | Closed as stale: maintainer ~mr-cal noted that Snapcraft's Dockerfiles had changed substantially and later moved to Rocks. No code fix was recorded. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed as stale. Superseded by infrastructure changes; Snapcraft's Dockerfiles were updated and migrated to rocks, resolving the base mismatch without code changes. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
25
Confidence:
90
Support Request:
15
|
close stale | snapcraft init generates a base field mismatched with the Docker environment instead of matching it or raising an error. Unaddressed for 7 years with no maintainer interaction. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
60
Confidence:
90
Support Request:
20
|
close stale | snapcraft init generates an incorrect base field when run inside outdated Docker images. The issue is 7 years old, lacks maintainer engagement, and references deprecated bases no longer supported in modern snapcraft. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
45
Confidence:
85
Support Request:
15
|
close stale | snapcraft init generates an incorrect base field in older Docker containers, causing build failures. The issue is 7 years old, has no maintainer engagement, and references deprecated Ubuntu 16.04 and core18 bases. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Related To:
snapcraft (launchpad)#1830389
(confidence 95%)
The issue description explicitly cross-references this companion bug.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1826611 Running snapcraft 3 w/ core18 base in docker incorrectly reports missing lib deps | snapcraft (launchpad) | closed | Closed as stale after 2,716 days; Snapcraft's legacy Dockerfiles had been updated, then OCI builds moved to Rocks. No resolving fix was identified. | |
| #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. |