fix(remotebuild): parse '--build-for' and '--platform'
Metadata
Current evaluation
Merged fix for remote-build parsing of --build-for and --platform flags. Enforces flag restrictions, updates documentation, and resolves issues #4858 and #4881. Approved by two reviewers with passing CI checks.
Suggested action: —
No scores available.
Issue body
- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] Have you successfully run `tox run -m lint`?
- [x] Have you successfully run `tox run -e test-py310`? (supported versions: `py39`, `py310`, `py311`, `py312`)
-----
* '--build-for' and '--platform' can only be used when 'platforms' and 'architectures' are not defined in the project metadata
* '--platform' cannot be used for core22 snaps
* Add links to documentation for remote-build errors
* Update remote-build documentation
Creates #4992
Fixes #4858
Fixes #4881
(CRAFT-3070)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged fix for remote-build parsing of --build-for and --platform flags. Enforces flag restrictions, updates documentation, and resolves issues #4858 and #4881. Approved by two reviewers with passing CI checks. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged fix for remote build flag parsing. Handles --build-for and --platform options, restricts usage when platforms or architectures are defined, blocks --platform on core22, updates docs, and resolves #4858 and #4881. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged fix to correctly parse --build-for and --platform flags in remote-build. Added validation constraints and updated documentation, resolving issues #4858 and #4881. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #5028 fix(remotebuild): parse comma-separated architectures | snapcraft | merged | Merged fix for issue #4990 enabling comma-separated architecture parsing for --build-for and --platform remote build arguments. Approved by two reviewers and verified via passing CI and spread tests. | |
| #4990 remote build: Allow comma-separated values for `--build-for` and `--platform` | snapcraft | closed | Fixed via PR #5028. The remote build command now supports comma-separated values for --build-for and --platform, resolving a regression introduced during the migration to craft-application. | |
| #272 feat(platforms): support --build-for to select platform | craft-application | merged | Merged to add --build-for flag for platform selection and update _filter_plan API with host_arch parameter for remote builds. Approved by two reviewers, passed CI, and resolves issue #254. | |
| #5351 fix(remote): error early for invalid platform usage | snapcraft | merged | Merged a fix that raises an early error when --build-for conflicts with shorthand platform entries, preventing unfriendly Launchpad failures. The change passed CI checks and received approvals, resolving issue #5270. | |
| #365 feat: accept build-for: [all] in platforms | craft-application | merged | Merged via rebase after approval and passing CI. Enables build-for: [all] in platform definitions, restricting other platforms when used. Resolves #360. |