Skip to content
CCPEDIAby Unity Nodes
App Development

Force Transitive Dependencies

2 posts255 viewsLast activity Mar 2023

  1. gtpaulose2OP

    Referencing this answer: Problem with transitive dependencies - #4 by cocreature

    It would be great if i could force expose all packages within a dar.

    Suppose I had a dar (main.dar) with 10 sub dars (one,dar, two.dar,…,ten.dar) packaged inside it, then my daml.yaml would look like this (if i wanted to access the templates inside the sub dars:

    data-dependencies:
      - <path_to_main.dar>
    build-options:
     - --package=one-0.0.0
     - --package=two-0.0.0
     - --package=three-0.0.0
    ....
    ........
     - --package=ten-0.0.0
    

    Ideally would be nice to be able to do the following,

    data-dependencies:
      - <path_to_main.dar>
    build-options:
      - --unpack-packages=main-0.0.0
    
  2. gtpaulose2

    This is useful as splitting of dars and packaging them as a bundle has advantages when upgrading and deploying