Not sure if this is the correct category but I have downloaded the sources for the pi-gadget snap from GitHub with a view to making some custom slot additions. However the snap does not build out of the box (prior to my changes). It seems that the snapcraft.yaml file is not compliant with base core22 (run-on should be replaced with run for in core22). Have I downloaded the wrong branch?
I previously tried the core20 branch and that built straight out of the box.
these gadgets have originally been created with snapcraft 6.x, which was on the latest/stablechannel back then … after release snapcraft 7.x has been released to latest/stable and it validates snapcraft.yaml differently … while the snapcraft.yaml has not been updated yet you can just switch your snapcraft to the 6.x channel and it should build …