Cannot create a snap with base:bare in destructive mode
Metadata
Current evaluation
Snapcraft 8.3.2 mishandled bare-base projects without build-base, producing architecture/platform errors; current models require build-base and fail early during validation.
Suggested action: close resolved
Reason: The reporter's YAML omits build-base, and maintainer @lengau explicitly identified the needed fix as checking that field earlier for base: bare. Current BareCore22Project and BareCore24Project variants require build_base, and snapcraft#5846 (commit 3249bed8e) implements the corrected model selection, preventing the reported core22 get_build_for fallback.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
45
Quick Win:
23
Complexity:
42
Confidence:
87
Actionability:
90
|
close resolved | Snapcraft 8.3.2 mishandled bare-base projects without build-base, producing architecture/platform errors; current models require build-base and fail early during validation. | |
| qwen/qwen3.6-35b-a3b |
Impact:
40
Quick Win:
26
Complexity:
20
Confidence:
85
Actionability:
80
|
keep open | Valid bug where base: bare without build-base causes a confusing RuntimeError instead of a clear validation message. Triaged, with a maintainer suggesting an earlier check for build-base. | |
| qwen/qwen3.8-27b |
Impact:
50
Quick Win:
30
Staleness:
55
Complexity:
40
Confidence:
70
Support Request:
20
|
keep open | Snapcraft 8.3.2 fails with 'cannot determine build-for architecture' when building a base:bare snap in destructive mode without build-base. Maintainer confirmed build-base is required for bare and plans an earlier, clearer validation error. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
85
Complexity:
20
Confidence:
85
Support Request:
10
|
keep open | Bug where base:bare snaps fail in destructive mode due to architecture keyword conflicts and missing build-base validation. Currently triaged, with maintainer suggesting earlier validation checks. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
85
Complexity:
20
Confidence:
80
Support Request:
10
|
keep open | Snapcraft fails to build snaps with base:bare due to missing build-base validation, causing a runtime error. Maintainer identified the need for earlier validation to provide better error messages. Issue is triaged but inactive. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
snapcraft#5846
(confidence 84%)
The model-selection change adds bare project variants keyed by a required build-base, avoiding the invalid core22 architecture path.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #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. | |
| #2728 Base bare | snapcraft | merged | Merged support for the bare Snap base in commit 7aa576658 ("project: support for base bare"), enabling projects to use base: bare. | |
| #1833409 core20: cannot specify a sensible base | snapcraft (launchpad) | closed | Build-base support for building base snaps without a runtime base was implemented in snapcraft PRs #2623 and #2619; LP bug #1835532 tracked the follow-up. | |
| #1857019 cannot build snapd snap with build-base: core w/o base: core | snapcraft (launchpad) | closed | Resolved in Snapcraft 3.10 by skipping ELF dependency checks when no runtime base is set, allowing snapd to use build-base: core. | |
| #4562 Validity of `base` is not checked when using `--destructive-mode` | snapcraft | closed | Base validation in destructive mode was fixed in Snapcraft 8.1 via craft-application 2.0 and canonical/craft-application PR #263. |