snapcraft stage->snap filter

Alexander Sack asac at canonical.com
Wed Jan 6 20:56:25 UTC 2016


Hi,

On Wed, Jan 6, 2016 at 12:57 PM, Reto Breitenmoser
<reto.breitenmoser at gmail.com> wrote:
> Hi
>
> When I build a snap with snapcraft, not every file from the stage is copied
> to the snap folder. What are the filter criterias?

filter criteria for what goes to snap/ can be tweaked using
include/exclude-style rules in the snap: section of your part in
snapcraft.yaml. Those can be glob style with a '-' prefix for
excludes. You can also refer to filesets defined by parts by using $
prefix in those rules. Some examples you can see in
examples/webcam-webui/snapcraft.yaml ....

Also, the default 'includes filter' seems to be set to match all (e.g.
*) from what I found in code.

Does this help to explain your behavior?

If not, maybe share all or parts of your snapcraft.yaml and what files
are missed. Maybe there is a bug :)

Thanks!

 - Alexander

>
> Reto
>
>
>
> --
> snappy-app-devel mailing list
> snappy-app-devel at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/snappy-app-devel
>



More information about the snappy-app-devel mailing list