`snapcraft remote-build` does not support long syntax of the `architectures` top-level key.
Bug #2007789 reported by
林博仁(Buo-ren, Lin)
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Confirmed
|
Undecided
|
Callahan Kovacs |
Bug Description
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(
```
Which conflicts what the documentation says: <https:/
To post a comment you must log in.
I'm able to reproduce this issue.
core22 snaps use the core18|20 implementation of `remote-build`. The core18|20 implementation raises this error when parsing core22 architecture syntax.
I think the best solution would be to port the `remote-build` function to the core22 codebase.
(tracking internally with CRAFT-1640)