DAML archive name (daml build)
- alex_mOP
Hello all,
Probably a noob question; how do I specify the name of the generated .dar file from
daml build. When creating a project withdaml new <name>, the name of the .dar is<name>-<version>.dar. However, when creating the project withdaml new <name> create-daml-appthe .dar is namedcreate-daml-app-<version>.dar. In short, I would like to usecreate-daml-appto get me going with a React/DAML app, but want the .dar to be named after my project name.Thanks
- alex_m 1
…never mind, think it is specified in daml.yaml!
- cocreature
There are two ways to change it:
- Change the
nameoption in yourdaml.yaml. That will put the DAR in.daml/dist/<yourprojectname>-version.dar. It will also control the package name used in the DALF. - Pass the path explicitly via
-o path/to/your.darHere you can choose the path freely.
I would recommend to always do 1 and then if you need a specific location specify
-oin addition to that.
For some templatesdaml newwill also automatically set the name to the directory you created but that is not the case for thecreate-daml-apptemplate. Note that there might be some other references, e.g., in the typescript code to the namecreate-daml-appthat you will also need to update. - Change the
- SamirTalwar
Can we update create-daml-app to take the directory name into account, or is there a good reason why we don’t do that?
- cocreature
The main reason is that there are other references to it, e.g., in the
package.jsonwhich are more tricky to update given our current scheme. - alex_m
Thank you for the replies! Yes I later realised the reason for this was as @cocreature described; that are a few things in UI source etc that use the name
create-daml-app - Gary_Verhaegen
No promise on timeline, but if you want a notification when this is fixed, you can track this issue.