I am trying to build a snap. Snapcraft has worked for me on this machine in the past, but now it is continuously failing with:
$ snapcraft
Launching a VM.
Could not find snap/snapcraft.yaml. Are you sure you are in the right directory?
To start a new project, use `snapcraft init`
Run the same command again with --debug to shell into the environment if you wish to introspect this failure.
An error occurred when trying to execute 'sudo -i env SNAPCRAFT_HAS_TTY=True snapcraft snap' with 'multipass': returned exit code 2.
The snapcraft.yaml does exist in snap and if I do:
$ snapcraft init
snap/snapcraft.yaml already exists!