← Back to issue list

schema: add build-for in architectures for core22

View original Github issue

Metadata

Project
snapcraft
Number
#5606
Type
pull request
State
merged
Author
fabolhak
Labels
Created
Updated
Closed

Current evaluation

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.

Suggested action:

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
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.
qwen3.6-35b-a3b-mtp-q6 Merged an external contribution adding the missing build-for field to the snapcraft.json schema for core22 architectures, aligning validation rules with official documentation.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#3821 meta: architectures snapcraft merged Merged adding build-on and build-for architecture support for core22 snaps. Introduced the SNAPCRAFT_BUILD_FOR environment variable to limit builds. Temporarily drafted to fix a duplicate build regression before final merge.
73%
#3812 architectures: add schema support snapcraft merged Merged after approval and passing CI. Added schema support for defining architectures in snapcraft.yaml as part one for core22. Coverage increased by 0.09%, and the build_to parameter was renamed to build_for during review.
72%
#4313 environment: add build-on and build-for envvars for core20 snapcraft merged Merged into main. Added SNAPCRAFT_ARCH_BUILD_ON and SNAPCRAFT_ARCH_BUILD_FOR environment variables to expose build architecture details for core20. Approved, passed CI, and increased coverage.
72%