Relocating snapcraft output directories

Loïc Minier loic.minier at
Fri Jun 3 14:21:11 UTC 2016

On Fri, Jun 3, 2016 at 3:21 PM, MikeB <mabnhdev at> wrote:

> Also, for a similar reason, I feel that locating custom plugins in
> parts/plugins is unfortunate.  Other than parts/plugins, the parts
> directory only contains generated files.  It would be nice if the plugins
> directory could be located in a source area rather than a build output area.

I have to second this; I often rm-rf-ed parts/ after forgetting I had a
plugin there  :-)

> Would it be possible to enhance snapcraft to allow all generated objects -
> parts, stage, snap, and the generated snap to be located on a different
> filesystem?

Can't speak on whether we want this, but in any case there is a range of
strategies you can put in place:
- bind-mounts or symlinks (haven't tested symlinks, but pretty sure
bind-mounts would work)
- or rsync your bits back and forth before/after builds
- this also works well if you keep your snapcraft bits in a git repo and
just commit/pull/push regularly

- Loïc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Snapcraft mailing list