Following the doc for creating snapcraft.yaml, after doing
snapcraft.init (and installing
snapcraft command shows the following warnings:
The 'snap' directory is meant specifically for snapcraft, but it contains the following non-snapcraft-related paths, which is unsupported and will cause unexpected behavior: - multipass - multipass/2259 - multipass/2259/.config - multipass/2259/.config/autostart - multipass/2259/config - multipass/2259/config/autostart - multipass/2259/config/autostart/multipass.gui.autostart.desktop - multipass/2259/data - multipass/2259/data/multipass - multipass/2259/data/multipass/client-certificate - multipass/2259/data/multipass/client-certificate/multipass_cert.pem - multipass/2259/data/multipass/client-certificate/multipass_cert_key.pem - multipass/common - multipass/current - snapcraft - snapcraft/5143 - snapcraft/common - snapcraft/current If you must store these files within the 'snap' directory, move them to 'snap/local', which is ignored by snapcraft. snapd is not logged in, snap install commands will use sudo
~/snap/snapcraft was created by
snapcraft init (before I installed
multipass), and ~/snap/multipass wasn’t there until I ran
snapcraft (after installing
multipass). So, it would seem that
snapcraft is warning about the existence of files that it created.
Secondly, why am I being warned that “snapd is not logged in” and what should I do about it?