Daml DAR file versions
- WallaceKellyOP
If 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?
- WallaceKelly 1
No.
You can see that both files are still in the ledger using this command:
daml packages listExample output:
Available packages: : 1531497db248355015e4bb038ae39e0a17dbb9da7de5e3075cf2a7743de4c9d9 (my-models-0.0.1) : 71fdf160ae04de61164d8c5f0ca7e7297b5504338605f082a813b8d3a22f2212 (my-models-0.0.1) :The
version:(that appears in thedaml.yamlfile) does not uniquely identify your code to the ledger. The package id is what actually identifies your “version” of the code. - a_putkov 1