using advanced grammar to build towards a certain arch does not work with stage-snaps

Bug #2006599 reported by Oliver Grawert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

trying to build a snap using a foreign arch stage-snap like i.e. the pi gadget (so one does not need to cross compile the already existing binaries) seems to be missing the UBUNTU_STORE_ARCH variable set for the "snap download" call in snapcraft, so the snap is reported as not found...

while it is solvable through an override hack, it would be nice to be able to just do something like:

```
to: arm64
  stage-snaps:
    - pi
```

but instead something like below is required:
https://github.com/ogra1/custom-pi-gadget/blob/main/snap/snapcraft.yaml#L27

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.