So, I am a bit confused here. I’ve seen that there’s support for cross-compiling go applications with snap and that there’s support for multi-arch snap.
I have the following snap file:
name: cordless version: git summary: Third party discord client description: | A third party discord client for your terminal. confinement: strict grade: stable architectures: - amd64 - arm64 - armhf base: core20 parts: cordless: plugin: go go-channel: 1.14/stable source: . source-type: git stage-packages: - xclip - libnotify-bin build-packages: - gcc - libc6-dev apps: cordless: command: bin/cordless plugs: [x11, network-bind, desktop] environment: XDG_CONFIG_DIR: $SNAP_USER_DATA/
However, it only builds one go-binary instead of 3? How could this possibly be cross-compatible. I assuming I am approaching this the wrong way? Do I instead have to build 3 separate snaps? If so, how do i do that? The
target-arch parameter seems to have been disabled and I can’t define multiple snapcraft.yml’s since the build command doesn’t appear to allow me choosing one per parameter. I hope someone can help me on this.