Snapcraft 2.23 restricts dump plugin capability
Matthew Aguirre
matt.aguirre at gmail.com
Tue Dec 13 22:25:34 UTC 2016
Can you do the organize in the build instead of post organizing with the
dump? I used to do something similar with copy, but then dump didn't do
what I needed, so switched it up.
On Dec 13, 2016 5:21 PM, "Joe Coates" <jcoates at extremenetworks.com> wrote:
> My snap includes a part which has an unconventional build process (which I
> don’t control). It builds and arranges a lot of stuff that I don’t need.
> For a while now I have been using a second part with the dump plugin to
> pick the files I need out of the build tree of the first part, and create
> directories and files in the snap exactly as I need them. The yaml goes
> like below. Unfortunately this breaks as of snapcraft 2.23, which seems
> to check the dump source path before the first part is built, and fails.
> Any suggestions as to how I can achieve the previous function with the
> current dump plugin ? (Using the organize keyword in the first part does
> not seem to be able to create directories in the install tree).
>
>
>
>
>
> part-aa:
>
> source: git at giteng1:part-aa
>
> source-type: git
>
> plugin: autotools
>
> # Don't include anything from here in the snap (done in next part)
>
> stage: [ "-*" ]
>
> snap: [ "-*" ]
>
>
>
> # This part just installs from the build tree of part-aa to the snap
>
> aa-snap:
>
> source: ./parts/part-aa/build
>
> after: [part-aa]
>
> plugin: dump
>
> organize:
>
> client/client: usr/bin/myclient
>
> other/observer: usr/bin/myobserver
>
> datafiles/client-1: etc/myclient/
>
> datafiles/client-2: etc/myclient/
>
> datafiles/observer-id: etc/myobserver/
>
> snap:
>
> - usr/bin
>
> - etc
>
>
>
>
>
> Thanks,
>
> Joe Coates
>
> ------------------------------
>
> DISCLAIMER:
> This e-mail and any attachments to it may contain confidential and
> proprietary material and is solely for the use of the intended recipient.
> Any review, use, disclosure, distribution or copying of this transmittal is
> prohibited except by or on behalf of the intended recipient. If you have
> received this transmittal in error, please notify the sender and destroy
> this e-mail and any attachments and all copies, whether electronic or
> printed.
>
> --
> Snapcraft mailing list
> Snapcraft at lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20161213/bd7a874f/attachment.html>
More information about the Snapcraft
mailing list