How can I enforce DAML assistant to build DAR with LF version 1.6?
Trying to write an integration test for our DAZL bot, and the sandbox says:
Could not load package /…myapp-0.1.dar: Could not parse archive …: com.digitalasset.daml.lf.archive.Reader$ParseError: LF file V1.7 unsupported; maximum supported V1.x is V1.6
at com.digitalasset.platform.sandbox.SandboxServer.$anonfun$loadDamlPackages$4(SandboxServer.scala:310)
Started sandbox with: dazl.sandbox(dar, extra_args=None)
2 Likes
You can add --target=1.6
to build-options
in your daml.yaml
file as in the following example:
sdk-version: 0.13.55
name: Everything
source: daml/TheAnswer.daml
parties:
- Alice
- Bob
exposed-modules:
- TheAnswer
version: '42.0.0'
dependencies:
- daml-prim
- daml-stdlib
build-options:
- --target=1.6
5 Likes
You should probably start the sandbox using daml start
instead of trying to start it through code. dazl.sandbox()
was developed for a much earlier version of the SDK and no longer works properly with the most recent versions of the SDK. See https://github.com/digital-asset/dazl-client/issues/75 for more background on the problem. Sorry about that!
2 Likes
Thanks Folks! Actually I can’t mark both answers from @dtanabe and @stefanobaghino-da as a Solution, but I’d like to
2 Likes