Part source when snapcraft.yaml is in snap dir


I had my snapcraft.yaml in the snap dir of a project, with a part source: ...

I noticed that doesn’t work though, so I moved the snapcraft.yaml to the top project dir, and had to remove the snap dir (else it would complain about the yaml not being there).

Is there a way to have both? So the project dir as source, while still having a snap dir.

if your project looks like:


then your part source with be ., as it’s relative to the snap project (where you run snapcraft).

Ah, I guess I didn’t try to run the snapcraft command in the project dir, while having the yaml in the snap dir.