"snapcraft extension" does not recognize core22 extensions
Bug Description
"snapcraft extension" does not accept a core22 extension as an argument. Here, ros2-humble is a valid core22 extension:
$ snapcraft extension ros1-noetic Setup a ROS 1 build and runtime environment suitable for a snap. $ snapcraft extension ros2-foxy Drives ROS 2 build and runtime environment for snap. $ snapcraft extension ros2-humble Failed to find extension 'ros2-humble': a extension by that name does not exist. Check the extension name and try again. $
This despite the fact that "snapcraft extensions" clearly lists ros2-humble as a valid core22 extension. Same problem with the other core22 extensions:
$ snapcraft extension gnome Failed to find extension 'gnome': a extension by that name does not exist. Check the extension name and try again. $
To Reproduce
$ snapcraft extension ros2-humble $ snapcraft extension gnome
Environment
Ubuntu 22.04, snap 7.5.2
snapcraft.yaml
None.
Relevant log output
None.
Additional context
No response
We had an extended discussion of this issue at https://chat.charmhub.io/charmhub/pl/odyssdtda7rdzjgo5cqbdiwy7e
The extension command was removed in snapcraft.