Snapcraft clutters my source directory

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!

1 Like

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

1 Like

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