Daml DAR file versions
App Development3 posts215 views2 likesLast activity Aug 2023
WA
WallaceKellyOP
Aug 2023If I do this…
daml builddaml ledger upload-dar .daml/dist/my-models-0.0.1.dar- Make a change to the Daml source files, but leave the
version: 0.0.1unchanged in the daml.yaml file. - Again
daml build - Again
daml ledger upload-dar .daml/dist/my-models-0.0.1.dar.
… does my second upload replace the first one?
WA
WallaceKelly
Aug 2023No.
You can see that both files are still in the ledger using this command:
daml packages list
Example output:
Available packages:
:
1531497db248355015e4bb038ae39e0a17dbb9da7de5e3075cf2a7743de4c9d9 (my-models-0.0.1)
:
71fdf160ae04de61164d8c5f0ca7e7297b5504338605f082a813b8d3a22f2212 (my-models-0.0.1)
:
The version: (that appears in the daml.yaml file) does not uniquely identify your code to the ledger. The package id is what actually identifies your “version” of the code.