`snapcraft remote-build` does not support long syntax of the `architectures` top-level key.
Metadata
Current evaluation
Fixed by migrating `snapcraft remote-build` to the core22 implementation, which correctly parses the long `architectures` syntax.
Resolution: closed resolved
Reason: The maintainer confirmed the issue is resolved because Core22 snaps now use the newer remote builder, which supports the documented architecture syntax.
Evaluated by: mr-cal-bot
No scores available.
Issue body
This in the recipe:
```
architectures:
- build-on: amd64
build-for: amd64
- build-on: arm64
build-for: arm64
- build-on: armhf
build-for: armhf
- build-on: ppc64el
build-for: ppc64el
```
triggers, this:
```
Issues while validating snapcraft.yaml: The 'architectures[0]' property does not match the required schema: additional properties are not allowed ('build-for' was unexpected) or orderedDict([('build-on', 'amd64'), ('build-for', 'amd64')]) is not of type 'string'
```
Which conflicts what the documentation says: <https://forum.snapcraft.io/t/architectures/4972#heading--core22>
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | closed resolved | Fixed by migrating `snapcraft remote-build` to the core22 implementation, which correctly parses the long `architectures` syntax. | |
| stealth/space-bunny-alpha |
Impact:
55
Quick Win:
17
Complexity:
68
Confidence:
96
Actionability:
96
|
close resolved | Documented core22 long-form architectures were rejected by remote-build; the core22 command was later ported to craft-application, resolving the schema mismatch. | |
| stealth/space-bunny-alpha |
Impact:
35
Quick Win:
16
Complexity:
45
Confidence:
82
Actionability:
85
|
close resolved | remote-build rejected core22 long-form `architectures` (build-on/build-for) syntax; legacy core18/20 remote-build path caused the schema error. Fixed by porting remote-build to craft-application, and core22/mainline now uses the new build planner. | |
| stealth/space-bunny-alpha |
Impact:
48
Quick Win:
32
Complexity:
30
Confidence:
98
Actionability:
95
|
close resolved | Long-form core22 architectures syntax was rejected by remote-build; subsequent schema support added the missing build-for field. | |
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
60
Quick Win:
42
Staleness:
85
Complexity:
30
Confidence:
70
Support Request:
10
|
close not a bug | snapcraft remote-build validation error for long-form architectures syntax; likely fixed by PR #4793/craft-application PR #343 | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
40
Confidence:
85
Support Request:
10
|
needs triage | snapcraft remote-build fails validation when using the long-form architectures syntax in snapcraft.yaml, contradicting official documentation. Untriaged, inactive for over three years. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
92
Complexity:
25
Confidence:
70
Support Request:
5
|
needs triage | snapcraft remote-build rejects the documented long syntax for the architectures key, causing validation errors. Unlabelled, no maintainer response, inactive for over 3 years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
40
Confidence:
85
Support Request:
10
|
close stale | Reports a validation error when using the long-form architectures syntax in snapcraft.yaml during remote-build, contradicting official docs. Issue is over three years old with zero comments or maintainer engagement. |
Update history
| Date | Change |
|---|---|
| closed | |
| created |
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #4543 fix(remote): parse comma-separated architectures | snapcraft | merged | Merged in snapcore/snapcraft#4543 as b8eed87c0, fixing comma-separated remote-build architectures and enforcing --build-for/--build-on exclusivity. | |
| #4780 remote build: fails with some architecture definitions | snapcraft | closed | Remote-build architecture handling was fixed by merged PR canonical/snapcraft#4793 (commit 53ec55cef), with companion support in canonical/craft-application#343. | |
| #1999580 core22: wrong arch in snap.yaml when building for all archs | snapcraft (launchpad) | closed | Fixed in merged canonical/snapcraft#4150 (commit 77d3454d): core22 snap.yaml now records build-for (all) instead of the build-on architecture. | |
| #1885150 Cannot use --build-on, architecture list is already set in snapcraft.yaml. | snapcraft (launchpad) | closed | Resolved in Snapcraft 8.7.0: remote-build added --build-for filtering for projects defining architectures or platforms, replacing the unusable --build-on workaround. | |
| #2060269 arch list not recognized by launchpad builder | snapcraft (launchpad) | closed | Fixed in snapcraft#4793 (commit 53ec55cef) which resolved shorthand architecture format handling for remote builds, with companion support in craft-application#343. | |
| #4144 remote build: legacy builder cannot parse core22 snapcraft.yaml syntax | snapcraft | closed | Marked won't fix: legacy-builder schema support was descoped in favor of the new remote builder, which accepts build-for; legacy support was removed by PR #5994 in Snapcraft 9. |