Open markus-da opened 1 year ago
@garyverhaegen-da has found that daml-finance is compiled with --target=1.15
but daml-ctl isn't, so it ends up using the default 1.14. Therefore we have 2 different packages for daml-prim. However, module name collision should never check on type such as GHC.Stack.Types
which is not going to be generated in the code-gen output.
We have created https://github.com/digital-asset/daml/issues/15340 to keep track of this issue. To workaround this while waiting for the fix to https://github.com/digital-asset/daml/issues/15340, maybe you could explore whether you could have made it compile with a consistent version to avoid 2 different packages of daml-prim?
Affected Daml version
2.4.0 (still present in the latest 2.5.0-snapshot.20221017.10775.0.61e85b19)
Bug description
When you try to run
daml java codegen
on daml finance you get the following error:To reproduce
daml build
daml codegen java -o ./ .daml/dist/daml-finance-0.1.7.dar
I have attached the .dar file in case that helps.
Expected behavior
No error.
Additional context
Using
daml damlc inspect-dar
, seems the two packages above both refer todaml-prim
:daml-finance-0.1.7.dar.zip