Snapcraft clutters my source directory


#1

When running snapcraft to build a package:

snapcraft --debug

it clutters my source dir with unnecessary directories (parts, prime, snap, stage …) and files. How to make it work in some other directory? Is there an issue for that?

Thanks!


#2

Take a look at the work @abitrolly worked on here: Out-of-tree builds with snapcraft

You may be able to use that work to do an out-of-tree build with snapcraft


#3

I personally don’t mind the clutter after adding them to the SCM ignores