On 2.6.0-snapshot.20221218.11169.0.9d007b31 in windows, trying to build daml-finance:
PS C:\Users\Levente\demos\daml-finance-app> daml build
damlc: .lib/contingent-claims-core-1.0.0.dar: openBinaryFile: does not exist (No such file or directory)
Despite:
PS C:\Users\Levente\demos\daml-finance-app> dir .lib
Directory: C:\Users\Levente\demos\daml-finance-app\.lib
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 11/29/2022 1:28 PM 451577 contingent-claims-core-0.1.0.dar
[SNIP]
Commenting out the reference in daml.yaml
did change the error message to the next “missing” .dar.
Also tried an earlier version (2.5.0-snapshot.20221010.10736.0.2f453a14) and had no problems.
Hi @Levente_Barczy,
I see the error message talks about contingent-claims-core-1.0.0.dar, while your dir listing shows contingent-claims-core-0.1.0.dar. Isn’t that the issue here?
I think you need to rerun ./scripts/get-dependencies.bat
to update the libs.
Kind Regards,
Mate
Apologies, it looks like the .bat script was not updated.
My mistake! I didn’t notice the mismatched versions. I updated the get-dependencies with the following versions:
call :get_dependency contingent-claims-core ContingentClaims.Core 1.0.0
call :get_dependency contingent-claims-lifecycle ContingentClaims.Lifecycle 1.0.0
call :get_dependency contingent-claims-valuation ContingentClaims.Valuation 0.2.0
call :get_dependency daml-finance-account Daml.Finance.Account 1.0.0
call :get_dependency daml-finance-claims Daml.Finance.Claims 1.0.0
call :get_dependency daml-finance-data Daml.Finance.Data 1.0.0
call :get_dependency daml-finance-holding Daml.Finance.Holding 1.0.0
call :get_dependency daml-finance-instrument-bond Daml.Finance.Instrument.Bond 0.2.0
call :get_dependency daml-finance-instrument-equity Daml.Finance.Instrument.Equity 0.2.0
call :get_dependency daml-finance-instrument-generic Daml.Finance.Instrument.Generic 1.0.0
call :get_dependency daml-finance-instrument-swap Daml.Finance.Instrument.Swap 0.2.0
call :get_dependency daml-finance-instrument-token Daml.Finance.Instrument.Token 1.0.0
call :get_dependency daml-finance-interface-account Daml.Finance.Interface.Account 1.0.0
call :get_dependency daml-finance-interface-claims Daml.Finance.Interface.Claims 1.0.0
call :get_dependency daml-finance-interface-data Daml.Finance.Interface.Data 1.0.0
call :get_dependency daml-finance-interface-holding Daml.Finance.Interface.Holding 1.0.0
call :get_dependency daml-finance-interface-instrument-base Daml.Finance.Interface.Instrument.Base 1.0.0
call :get_dependency daml-finance-interface-instrument-bond Daml.Finance.Interface.Instrument.Bond 0.2.0
call :get_dependency daml-finance-interface-instrument-equity Daml.Finance.Interface.Instrument.Equity 0.2.0
call :get_dependency daml-finance-interface-instrument-generic Daml.Finance.Interface.Instrument.Generic 1.0.0
call :get_dependency daml-finance-interface-instrument-swap Daml.Finance.Interface.Instrument.Swap 0.2.0
call :get_dependency daml-finance-interface-instrument-token Daml.Finance.Interface.Instrument.Token 1.0.0
call :get_dependency daml-finance-interface-lifecycle Daml.Finance.Interface.Lifecycle 1.0.0
call :get_dependency daml-finance-interface-settlement Daml.Finance.Interface.Settlement 1.0.0
call :get_dependency daml-finance-interface-types-common Daml.Finance.Interface.Types.Common 1.0.0
call :get_dependency daml-finance-interface-types-date Daml.Finance.Interface.Types.Date 1.0.0
call :get_dependency daml-finance-interface-util Daml.Finance.Interface.Util 1.0.0
call :get_dependency daml-finance-lifecycle Daml.Finance.Lifecycle 1.0.0
call :get_dependency daml-finance-settlement Daml.Finance.Settlement 1.0.0
call :get_dependency daml-finance-util Daml.Finance.Util 1.0.0
And I can compile just fine. Thank you!!
@Levente_Barczy I just pushed in an update to the batch file. Thanks for reporting!
1 Like