Using the latest hombrew available versions of multipass (1.12.0) and snapcraft (7.3.1) I however got the following error when using base: core22:
Traceback (most recent call last):
[...]
File "/opt/homebrew/Cellar/snapcraft/7.3.1/libexec/lib/python3.11/site-packages/craft_parts/infos.py", line 268, in _set_machine
raise errors.InvalidArchitecture(self._host_arch)
craft_parts.errors.InvalidArchitecture: Architecture 'arm64' is not supported.
Make sure the architecture name is correct.
I noticed however that changing base to core20 makes the build go through.
What’s going on here?
Full config here:
name: x
base: core22
architectures:
- arm64
version: '0.1'
summary: My snap
description: Snap description
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
parts:
x:
plugin: rust
build-packages: [cargo, rustc]
source: .
apps:
x:
command: bin/x
daemon: simple
But the shorthand syntax I used is still supported, right? I tried using the full syntax with build-on + build-for, but that still gives the same error.
Not @Saviq anymore, but me But no, we fixed this in Multipass 1.12 and the error is spit out by Snapcraft. It seems perhaps Snapcraft is selectively filtering out arm64 support with core22 base when using Multipass???