← Back to issue list

snap with only scripts gets wrongs architecture set

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1520248
Type
issue
State
closed
Author
~dholbach
Labels
—
Created
Updated
Closed

Current evaluation

Script-only snap architecture handling was fixed by merged PR canonical/snapcraft#121 (merge 672bdedf4; implementation 4d4261135) and recorded for Snapcraft 0.6.

Resolution: closed resolved

Reason: PR #121, “Support architectures override,” was merged as 672bdedf4, with implementation commit 4d4261135. It added architecture overrides, and the reported script-only snap was confirmed working; the fix was recorded for Snapcraft 0.6 in 1d4cd5c0b.

Evaluated by: mr-cal-bot

No scores available.

Issue body

https://bazaar.launchpad.net/~dholbach/+junk/hello-world.snap/view/head:/snapcraft.yaml - lint:control_architecture_specified_needed Could not find compiled binaries for architecture 'amd64' With snapcraft 0.5.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Script-only snap architecture handling was fixed by merged PR canonical/snapcraft#121 (merge 672bdedf4; implementation 4d4261135) and recorded for Snapcraft 0.6.
stealth/space-bunny-alpha — closed resolved Script-only snap architecture handling was fixed in ubuntu-core/snapcraft#121 and recorded for Snapcraft 0.6 in commit 1d4cd5c0b.
stealth/space-bunny-alpha — closed resolved Handled in the Snapcraft 0.6 release cycle: LP bug #1520248 was recorded in the 0.6 changelog update (1d4cd5c0b).
stealth/space-bunny-alpha — closed stale Launchpad bug 1520248 was closed without a documented fix after years of inactivity; Snapcraft 0.5 incorrectly linted script-only snaps as missing amd64 binaries.
qwen/qwen3.6-35b-a3b — — Closed without comments or resolution. Snapcraft 0.5 incorrectly flagged script-only snaps as missing amd64 binaries. The issue was abandoned and likely resolved in later snapcraft versions.
qwen/qwen3.6-35b-a3b — — Closed without comments or resolution. Likely abandoned or superseded by newer snapcraft versions that improved architecture detection for script-only snaps.
qwen3.6-35b-a3b-mtp-q6 — — Closed without discussion. Likely abandoned, though the architecture detection bug was fixed in a later snapcraft release.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#121 (confidence 100%)

    Merged architecture-override support addressing the script-only snap architecture error.

Related issues

Issue Project State Summary Similarity
#1817288 snapcraft cleanbuild produces incorrect architecture snap snapcraft (launchpad) closed Bug (legacy cleanbuild naming a snap _multi.snap despite correct advanced architectures) was never fixed; closed in Aug 2023 by ~sergiusens noting cleanbuild is no longer supported and all builds are now transparently clean.
72%
#1641123 snapcraft does not properly detect the architecture when kernel is 64 bits but userspace is 32 snapcraft (launchpad) closed Fixed in snapcore/snapcraft#1089 by deriving the build architecture from the compiler target, preventing 32-bit ARM artifacts from being mislabeled arm64.
71%
#4214 snapcraft 7.4.3 doesn't adequately complain about non-existent architectures snapcraft closed Fixed in Snapcraft 8: invalid build-on architectures now produce a clear validation error listing all supported architectures.
70%