daml icon indicating copy to clipboard operation
daml copied to clipboard

Ability to exclude dependency packages from DAR

Open mjuchli-da opened this issue 2 years ago • 1 comments

What is the problem you want to solve?

Currently, dependencies and data-dependencies will include the corresponding packages when building a dar. As a result, the dar becomes self-sustaining, which is desirable in most cases.

However, there are scenarios in which including dependency packages introduces an unnecessary overhead. For example, when building an upgrade project, the dependencies already reside on the ledger.

What is the solution you would propose?

Perhaps parse a new section excluded-dependencies within daml.yaml.

Describe alternatives you've considered

Splitting the codebase further into multiple DARs is not always straightforward, or at the very least, can be cumbersome.

Additional context

Uploading a dar to the ledger can quickly result in a grpc message exceeds maximum size, a setting that is not always easily adjustable.

mjuchli-da avatar Feb 28 '24 15:02 mjuchli-da

Currently under discussion here: https://docs.google.com/document/d/16nfIFOh4DTlwZ7VrnLznj4on4CuqIQBOYFjfl_aILJs/edit#heading=h.j1o9vy5fqmrz

basvangijzel-DA avatar Mar 12 '24 14:03 basvangijzel-DA