`snapcraft remote-build` does not support long syntax of the `architectures` top-level key.

Bug #2007789 reported by 林博仁(Buo-ren, Lin)
14
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([('build-on', 'amd64'), ('build-for', 'amd64')]) is not of type 'string'
```

Which conflicts what the documentation says: <https://forum.snapcraft.io/t/architectures/4972#heading--core22>

Revision history for this message
Callahan Kovacs (mr-cal) wrote :

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)

Changed in snapcraft:
assignee: nobody → Callahan Kovacs (mr-cal)
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.