← Back to issue list

`core20` behaviour with short-hand architecture

View original Github issue

Metadata

Project
snapcraft
Number
#5789
Type
issue
State
closed
Author
jnsgruk
Labels
Status: Triaged Type: Bug
Created
Updated
Closed

Current evaluation

Core20 shorthand packing was retained as legacy behavior: PR #5790 was closed unmerged, while PR #5818 (f0a732be3) added a warning in 8.13.0; remote-build handling moved to #5817.

Resolution: closed not a bug

Reason: Maintainers determined that shorthand and long-form architectures have different semantics in the generated meta.yaml, so the longstanding _multi.snap behavior was intentionally retained despite conflicting documentation. PR #5818 added a warning, while the attempted correction in PR #5790 was rejected.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### Bug Description In the last few releases, something seems to have changed in the handling of the architectures definition for `core20` snaps. ### To Reproduce If I create a snap with details such as: ```yaml # ... name: foo version: 0.1 base: core20 architectures: - arm64 - amd64 ``` After `snapcraft pack --use-lxd`, the resulting file is `foo_0.1_multi.snap`, where it was previously `foo_0.1.amd64.snap` as I'd expect. If I expand the definition to: ```yaml # ... name: foo version: 0.1 base: core20 architectures: - build-on: [arm64] run-on: [arm64] - build-on: [amd64] run-on: [amd64] ``` Then I get the expected result. My understanding was that the two forms are supposed to be equivalent, and that the resulting `*_multi.snap` is probably a bug? ### Environment Ubuntu 25.04, Snapcraft 8.12.0, building using LXD ### snapcraft.yaml ```yaml see above ``` ### Relevant log output ```shell see above ``` ### Additional context Discovered while troubleshooting this issue: https://github.com/snapcrafters/sublime-text/issues/86

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed not a bug Core20 shorthand packing was retained as legacy behavior: PR #5790 was closed unmerged, while PR #5818 (f0a732be3) added a warning in 8.13.0; remote-build handling moved to #5817.
stealth/space-bunny-alpha — closed not a bug core20 shorthand packing was accepted as legacy behavior, not fixed. PR #5790 was rejected; merged PR #5818 (f0a732be3) added a warning instead.
qwen/qwen3.6-35b-a3b — — Closed without fixing the core20 shorthand architecture bug, deemed a load-bearing behavior that cannot be changed. The related remote-build inconsistency was identified as a separate fixable issue tracked in #5817.
qwen/qwen3.6-35b-a3b — — Closed as unfixable due to historical core20 behavior. The related remote-build --build-for inconsistency was identified as fixable and tracked separately in issue #5817. Original PR #5790 was not merged.
qwen/qwen3.6-35b-a3b — — Closed as wontfix. Maintainers determined the core20 shorthand architecture behavior is intentional due to semantic differences in meta.yaml generation. A separate remote-build inconsistency was tracked in a new issue for future resolution.
qwen3.6-35b-a3b-mtp-q6 — — Closed as a known limitation. Shorthand architecture handling producing _multi.snap files is intentional due to meta.yaml semantics. Follow-up issue #5817 tracks fixing the remote-build --build-for inconsistency. No fix merged.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/snapcraft#5818 (confidence 100%)

    Merged commit f0a732be3 added a warning for core20 architecture shorthand and shipped in 8.13.0.

  • Related To: canonical/snapcraft#5790 (confidence 100%)

    Attempted to correct the _multi.snap naming behavior but was closed unmerged because the change had unintended effects.

  • Related To: canonical/snapcraft#5817 (confidence 100%)

    Tracking issue created for the separate remote-build --build-for inconsistency.

Related issues

Issue Project State Summary Similarity
#5818 feat(legacy): add a warning for the architecture shorthand on core20 snapcraft merged Merged PR #5818 (commit f0a732be3), adding a core20 architecture-shorthand warning; released in Snapcraft 8.13.0 for #5789.
77%
#5790 fix: resolve core20 architecture shorthand multi-snap naming issue snapcraft closed External PR to fix core20 shorthand architecture producing multi-arch snaps was declined by maintainer (bepri) as better fixed internally; superseded by merged PR #5818 (commit f0a732be3) adding a warning, shipped in 8.13.0.
73%
#6090 feat(remote-build/legacy): improve error when building with --build-for snapcraft merged Merged PR #6090 improved legacy remote-builder errors for core20, clarifying that --build-for requires shorthand architectures because of Launchpad limitations. It addresses #5817 and supersedes #5819.
71%
#5675 Remove core20 lifecycle snapcraft closed Merged PR #6019 via commit fa7952b4d, removing core20 build/lifecycle support and core20 command entries; core20 spread tests were removed separately in PR #6009.
70%