Re: How to tell dump plugin to only copy a specific file
On Tue, Oct 4, 2016 at 3:08 AM, Gustavo Niemeyer < gustavo.nieme...@canonical.com> wrote: > > As a trivial hint, the "snap" list doesn't need to duplicate the content > of "stage". It needs to be there only if what is in stage needs to be > tweaked further. > I think that's https://bugs.launchpad.net/snapcraft/+bug/1623279 Should work, but doesn't yet. Has anyone tried it? -- ¡paz y baile! http://www.ubuntu.com -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
Re: How to tell dump plugin to only copy a specific file
Hello, On Tue, Oct 4, 2016 at 5:43 AM, Jacek Nykis wrote: > > Is there an example on how a filesets line may look like, a grep on the > > playpen repository does not seem to match filesets ? > > https://git.launchpad.net/prometheus-snap/tree/snapcraft.yaml Thanks for helping out. As a trivial hint, the "snap" list doesn't need to duplicate the content of "stage". It needs to be there only if what is in stage needs to be tweaked further. gustavo @ http://niemeyer.net -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
Re: How to tell dump plugin to only copy a specific file
On 03/10/16 23:59, Omer Akram wrote: > On Tue, Oct 4, 2016 at 3:53 AM, Sergio Schvezov < > sergio.schve...@canonical.com> wrote: > >> >> >> El 03/10/16 a las 19:45, Omer Akram escribió: >> >>> Hi! >>> >>> I have a very simple python application with a library part and a >>> launcher. The library is being compile by the `python` plugin and I am >>> copying the launcher with `dump` plugin. It works but it seems that the >>> dump plugin copies all the undesired files in the root of my project into >>> the final snap, I only want it to copy a single file. Is there a config >>> that I can tell the plugin to only copy that specific file ? >>> >> >> Use filesets, stage or prime, or both. > > > Is there an example on how a filesets line may look like, a grep on the > playpen repository does not seem to match filesets ? https://git.launchpad.net/prometheus-snap/tree/snapcraft.yaml Regards, Jacek signature.asc Description: OpenPGP digital signature -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
Re: How to tell dump plugin to only copy a specific file
El 03/10/16 a las 19:59, Omer Akram escribió: On Tue, Oct 4, 2016 at 3:53 AM, Sergio Schvezov mailto:sergio.schve...@canonical.com>> wrote: El 03/10/16 a las 19:45, Omer Akram escribió: Hi! I have a very simple python application with a library part and a launcher. The library is being compile by the `python` plugin and I am copying the launcher with `dump` plugin. It works but it seems that the dump plugin copies all the undesired files in the root of my project into the final snap, I only want it to copy a single file. Is there a config that I can tell the plugin to only copy that specific file ? Use filesets, stage or prime, or both. Is there an example on how a filesets line may look like, a grep on the playpen repository does not seem to match filesets ? https://github.com/snapcore/snapcraft/blob/master/demos/gopaste/snapcraft.yaml#L27 -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
Re: How to tell dump plugin to only copy a specific file
On Tue, Oct 4, 2016 at 3:53 AM, Sergio Schvezov < sergio.schve...@canonical.com> wrote: > > > El 03/10/16 a las 19:45, Omer Akram escribió: > >> Hi! >> >> I have a very simple python application with a library part and a >> launcher. The library is being compile by the `python` plugin and I am >> copying the launcher with `dump` plugin. It works but it seems that the >> dump plugin copies all the undesired files in the root of my project into >> the final snap, I only want it to copy a single file. Is there a config >> that I can tell the plugin to only copy that specific file ? >> > > Use filesets, stage or prime, or both. Is there an example on how a filesets line may look like, a grep on the playpen repository does not seem to match filesets ? > > > >> To workaround that I created a new directory only containing my launcher >> and set it as source. >> > > Is there anything wrong with this approach? Apart from a personal preference of keeping the cli on the root of my project, now the launcher does not work directly from the source code without adjusting its imports. > > > -- > Snapcraft mailing list > Snapcraft@lists.snapcraft.io > Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm > an/listinfo/snapcraft > -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
Re: How to tell dump plugin to only copy a specific file
El 03/10/16 a las 19:45, Omer Akram escribió: Hi! I have a very simple python application with a library part and a launcher. The library is being compile by the `python` plugin and I am copying the launcher with `dump` plugin. It works but it seems that the dump plugin copies all the undesired files in the root of my project into the final snap, I only want it to copy a single file. Is there a config that I can tell the plugin to only copy that specific file ? Use filesets, stage or prime, or both. To workaround that I created a new directory only containing my launcher and set it as source. Is there anything wrong with this approach? -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft