Skip to content
CCPEDIAby Unity Nodes
App Development

Dpm 1.1.0: depend on prebuilt DARs straight from Git

1 posts28 viewsLast activity 13d ago

  1. francomangussiOP

    dpm 1.1.0 adds Git as a source for prebuilt DAR dependencies. If your project keeps copies of Splice DARs in a dars/ folder, you can now reference them where they live:

    data-dependencies:
      - git:github.com/canton-network/splice#release-line-0.6.8?path=daml/dars/splice-amulet-0.1.19.dar
    

    On dpm install package, dpm downloads the file, caches it and rewrites the branch or tag to the exact commit, so everyone builds against the same DAR. dpm build and dpm test work as before. It works under dependencies and data-dependencies, and the repository must be public.

    The quickest way to try it: copy the link to a DAR from GitHub and run dpm add dar <link> --data-dependencies.

    Full write-up: Bringing Git-based DAR dependencies to Canton's package manager – Moonsong Labs
    Demo project: GitHub - Moonsong-Labs/dpm-git-links-demo: Simple DAML demo application for testing DPM git-links feature · GitHub
    Docs: Environment Configuration - Canton Network Docs

    If you migrate a project, please reply here with your team, the project and a link to your daml.yaml or PR. Questions are welcome in this thread too. Bugs go to Issues · digital-asset/dpm · GitHub .

    Built by Moonsong Labs with support from the Canton Development Fund; reviewed and released by the Digital Asset dpm team.