Cannot use adapter: none with snapcraft 7.0.1 and base: core22

I was trying to update a snap to core22 and the new snapcraft from candidate channel refuses to use adapter: none which is documented as valid at https://snapcraft.io/docs/snapcraft-yaml-reference

zyga@lambert:~/projects/hare-snap$ snapcraft
Bad snapcraft.yaml content:
- extra field 'adapter' not permitted in 'apps.hare' configuration
- extra field 'adapter' not permitted in 'apps.harec' configuration
- extra field 'adapter' not permitted in 'apps.haredoc' configuration                                                                                                                                                                             

adaptor was always a hack to find a way out of having the infamous snapcraft wrapper. We then moved on to command-chain to only discover that not every base provides a shell, the new solution allows for a more declarative override defined in (micro) Howto migrate from core20 to core22 under the " Snapcraft provided environment" section.

1 Like