I am taking my first steps with snapcraft, and each time I am running snapcraft in a folder with snapcraft.yaml, it generates all the build, stage, prime folders.

Is there a way to specify that I want these folders to be tucked away inside one folder (like ./tmp)?


You can't really instruct snapcraft to create folders in a specific place, but if you use Snapcraft 3 and specify a base in your snapcraft.yaml (such as base: core18), builds will be executed in a segregated environment and those folders won't be created on your host environment (the one you run snapcraft from). If you just need them out of the way, this should solve your problem.

Edit: there's a forum post detailing a patch proposal that might do exactly what you want.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.