Indeed, from the example it looks like you could make it work with only the single `part-aa` plus some good use of the organize keyword along with stage/snap to whitelist only those components.
On 12/13/2016 02:25 PM, Matthew Aguirre wrote: > 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" <jcoa...@extremenetworks.com > <mailto:jcoa...@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@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@lists.snapcraft.io <mailto:Snapcraft@lists.snapcraft.io> > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/snapcraft > <https://lists.ubuntu.com/mailman/listinfo/snapcraft> > > > -- Kyle Fazzari (kyrofa) Software Engineer Canonical Ltd. k...@canonical.com
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