If I do this…
daml 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.1 unchanged in the daml.yaml file.
daml ledger upload-dar .daml/dist/my-models-0.0.1.dar.
… does my second upload replace the first one?
You can see that both files are still in the ledger using this command:
daml packages list
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.
This is also covered in the documentation here and here