Use of the dump plugin in snapcraft 2.22.1
James Tait
james.tait at canonical.com
Thu Dec 8 10:50:54 UTC 2016
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20161208/da432639/attachment-0001.html>
More information about the Snapcraft
mailing list