Use of the dump plugin in snapcraft 2.22.1
Jenny Murphy
jenny.murphy at episensor.com
Thu Dec 8 13:02:40 UTC 2016
Hi James,
Thanks, yes now I can manage with the dump plugin.
Jenny
On 8 December 2016 at 10:50, James Tait <james.tait at canonical.com> wrote:
> Hi Jenny,
>
> On 8 December 2016 at 10:14, Jenny Murphy <jenny.murphy at episensor.com>
> wrote:
>
> Hi,
>> I have been trying to upgrade a snapcraft file I had which used the copy
>> plugin with snapcraft 1.1.0. My newer version of snapcraft 2.22.1.
>> I am aware that the copy plugin is now deprecated and I should use the
>> dump plugin.
>> I could actually like to copy the contents of a directory :
>> So previously I had :
>> move-webapp:
>> plugin: copy
>> files:
>> webapp: webapp # Moved everything in ./webapp to stage/webapp
>>
>>
>> I haven't found too many examples of using the dump plugin to do the same
>> job.
>> The Examples link is broken here. http://snapcraft.io/docs
>> /reference/plugins/dump
>>
>>
>> I also found it difficult to locate any documentation on the plugin, but
> with some reading of the code and some experimentation I got something that
> seems to work. This
> <https://github.com/jamestait/snappy-playpen/blob/cuberite/cuberite/snapcraft.yaml>
> is my snapcraft.yaml using the copy plugin, and I updated to to this
> <https://github.com/jamestait/cuberite/blob/master/snapcraft.yaml> using
> the dump plugin. In one instance I simply replaced files with filesets;
> in the other I replaced it with organize and added a clause to only
> include the bin directory in the snap. I don’t recall why the two
> approaches were required.
>
> Hope that helps!
>
> --
> James Tait, BSc. | https://launchpad.net/~jamestait/
> Software Engineer, Canonical Online Services
> Ubuntu - Linux for human beings | www.ubuntu.com
>
> --
> Snapcraft mailing list
> Snapcraft at lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
>
--
*Jenny Murphy*
*EpiSensor, Georges Quay House, Georges Quay, Limerick, Ireland*
jenny.murphy at episensor.com <jenny.murphy at episensor.com> t | +353 (0) 61
512 511 w | http://www.episensor.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20161208/ba014a3e/attachment-0001.html>
More information about the Snapcraft
mailing list