schema: add build-for in architectures for core22
Metadata
Current evaluation
Merged as c9822a38c via snapcraft#5606, adding build-for to the core22 architectures schema in snapcraft.json.
Resolution: closed resolved
Reason: PR #5606 was approved and merged. Commit c9822a38c added core22 schema support for build-for, aligning snapcraft.json with the documented architecture syntax.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [x] Have you followed the [guidelines for contributing](https://github.com/canonical/snapcraft/blob/main/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `make lint`?
- [ ] Have you successfully run `make test`?
---
According [to the docs](https://documentation.ubuntu.com/snapcraft/latest/reference/architectures/#core22) `build-for` is valid in `architectures`, but missing in the schema. This PR adds `build-for` in the `snapcraft.json`
Please let me know if running `make lint` and `make test` are necessary for changing the `snapcraft.json`.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged as c9822a38c via snapcraft#5606, adding build-for to the core22 architectures schema in snapcraft.json. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged #5606 in commit c9822a38c, adding documented core22 build-for support to snapcraft.json so architecture definitions validate. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged #5606 via c9822a38c, adding build-for to core22 architectures in snapcraft.json so the schema accepts the documented syntax. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #5606 (commit c9822a38c) added build-for support to core22 architectures in the schema, aligning validation with documented syntax. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged #5606 in commit c9822a38c, adding build-for support to core22 architectures in the snapcraft.json schema. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in snapcraft#5606 (c9822a38c), adding core22 architectures schema support for build-for so snapcraft.json matches the documented syntax. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged update adding the build-for field to the core22 architectures schema. The change aligns the schema with official documentation and passed all review and CI checks. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Added the missing build-for field to the architectures schema for core22 in snapcraft.json, aligning the schema with official documentation. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3812 architectures: add schema support | snapcraft | merged | Merged as commit 629e4ce51: adds core22 architectures schema support to snapcraft.yaml (build_to renamed to build_for), part 1 of CRAFT-1163; full feature followed in #3821 (4876b53). | |
| #3821 meta: architectures | snapcraft | merged | Merged core22 architecture support, including build-on/build-for handling, host and build-instance selection, and SNAPCRAFT_BUILD_FOR filtering, via commit 4876b53. | |
| #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. | |
| #4854 Accept `build-for: [all]` and `--build-for=all` for architecture-independent snaps | snapcraft | closed | Resolved: Snapcraft supports build-for [all] and --build-for=all for remote builds/core24 in 8.4.0 and core22 in 8.7.0; requested core22/core24 regression tests were added. | |
| #4150 meta: use build-for in snap.yaml architecture | snapcraft | merged | Merged #4150 as 77d3454d: build-for: all now writes architectures: all to meta/snap.yaml instead of the build-on architecture, fixing CRAFT-1535. | |
| #1533713 Add metadata describing the architectures that a snap can be built for | snapcraft (launchpad) | closed | Core20 added build-on/build-for platform metadata in 2018, enabling CI to derive builds and build-for: [all] for architecture-independent snaps. | |
| #4630 feat: add platforms and drop architectures for core24 | snapcraft | merged | Merged as canonical/snapcraft#4630 (f771a4ab8), adding optional core24 platform selection and removing legacy architectures, with host build defaults. | |
| #4313 environment: add build-on and build-for envvars for core20 | snapcraft | merged | Merged PR #4313 as 93a9d8170, adding core20 SNAPCRAFT build-on/build-for architecture and triplet environment variables plus tests. | |
| #2009520 core18/20: inconsistent architecture parsing | snapcraft (launchpad) | closed | Superseded by snapcore/snapcraft#4340 and #4341. Core22+ overlapping build-on handling merged in #3821 (4876b53); core20 support was declined. | |
| #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. |