remote build: legacy builder cannot parse core22 snapcraft.yaml syntax
Metadata
Current evaluation
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.
Resolution: closed superseded
Reason: The maintainer closed the request as won't fix because the new remote builder already supported these keywords and the legacy implementation was descoped. PR #5994, commit b08f1a66e, subsequently removed the legacy remote builder in Snapcraft 9.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### What needs to get done
Add `architectures.build-for` field to the [JSON schema](https://github.com/snapcore/snapcraft/blob/main/schema/snapcraft.json).
### Why it needs to get done
VS Code + [YAML](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml):

Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed superseded | 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. | |
| stealth/space-bunny-alpha | — | closed superseded | Closed as won't fix: mr-cal descoped legacy remote-builder core22 support (CRAFT-3285) in favour of the new remote builder; PR #5994 (b08f1a66e) then removed the legacy builder in Snapcraft 9. | |
| stealth/space-bunny-alpha | — | closed stale | Closed as won't fix: core22 legacy-builder work was descoped for the new remote builder. PR #5994 (b08f1a66e) subsequently removed the legacy builder in Snapcraft 9. | |
| qwen/qwen3.6-35b-a3b | — | — | Won't fix. The legacy remote builder lacks core22 syntax support and was descoped in favor of the new remote builder. The legacy builder will be removed in Snapcraft 9, making this enhancement unnecessary. | |
| qwen/qwen3.6-35b-a3b | — | — | Marked won't fix. Legacy remote builder support for core22 syntax was descoped in favor of the new remote builder. The legacy builder will be removed in Snapcraft 9, rendering this enhancement unnecessary. | |
| qwen/qwen3.6-35b-a3b | — | — | Marked won't fix. Development on the legacy remote builder was descoped in favor of the new builder, which already supports core22 syntax. The legacy builder will be removed in Snapcraft 9, rendering this enhancement unnecessary. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Legacy remote builder cannot parse core22 build-for syntax. Work was descoped in favor of the new remote builder and marked won't fix. The legacy builder will be removed in Snapcraft 9. Use the new builder via SNAPCRAFT_REMOTE_BUILD_STRATEGY=disable-fallback. |
Update history
No update history recorded yet.
Related work
-
Superseded By:
canonical/snapcraft#5994
(confidence 99%)
Removed the legacy remote builder in favor of the current implementation.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #4365 remote-build: legacy builder complains about the wrong part name | snapcraft | closed | Core22 snaps hit a bogus schema error in the legacy remote-build fallback. Closed as "won't fix" by mr-cal on 2026-01-27; the legacy remote builder was removed in #5994 and #6010 for Snapcraft 9. | |
| #4895 fix(remotebuild): require core20 snaps to use the legacy remote builder | snapcraft | merged | Merged in #4895 (d9c8781a1), requiring core20 remote builds to use the legacy builder because the new builder could not parse core20 snapcraft.yaml files; fixes #4886. | |
| #5676 remote build: remove legacy remote builder | snapcraft | closed | Fixed in merged PR #5994 (commit b08f1a66e) for Snapcraft 9.0 by removing the legacy remote builder, selection logic, strategy env var, and legacy credential support. | |
| #4886 Use legacy remote builder for core20 snaps | snapcraft | closed | Fixed by merged PR #4895 (commit d9c8781a1), routing core20 snaps to the legacy remote builder because the new builder could not parse architectures with run-on. | |
| #5427 Add a deprecation notice for building core22 snaps with the legacy remote builder | snapcraft | closed | Added the core22 legacy remote-builder deprecation warning in Snapcraft 8.10 via merged PR #5523 (commit 1d8e87486). | |
| #1992557 snapcraft remote-build snapcraft.yaml validation too strict | snapcraft (launchpad) | closed | Strict validation in snapcraft remote-build rejected empty LD_LIBRARY_PATH for core22 snaps. Resolved by the new remote builder, which fixes the legacy core18/20 implementation bug. | |
| #4479 remote-build broken with shallow clones | snapcraft | closed | Fixed in Snapcraft 8.0.1 by PR #4498 (commit 1e285148e), which falls back to the legacy remote builder for shallow Git clones on core20/core22. | |
| #300 Remote-build: use craft-application for core22 | craft-application | closed | Core22 remote builds moved to craft-application in merged Snapcraft PR #4724 (commit 9905f2831), removing the legacy core22 build path. | |
| #5712 remote build: legacy builder should give a friendly error when passing `--project` | snapcraft | closed | Closed as won't fix: maintainer mr-cal said the UX tweak wasn't critical because the legacy remote builder is being removed in Snapcraft 9. That removal landed in merged PR #5994 (commit b08f1a66e), closing #5676. | |
| #1976221 Missing linker base while building with core22 base | snapcraft (launchpad) | closed | Resolved by upgrading from legacy Snapcraft to Snapcraft 7.x, which correctly builds core22 snaps; no code fix or linked PR was recorded. |