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
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft

Reply via email to