Skip to content
CCPEDIAby Unity Nodes
Discussions/Outreach/`daml start` runs codegen by default?Forum ↗

`daml start` runs codegen by default?

Outreach5 posts301 views1 likesLast activity Jun 2022
ST
StephenOTTOP
Jun 2022

when running daml start it seems to run codegen by default on first build. Is this by design?

CO
cocreature
Jun 2022

Yes it’s by design. Note that it only does this if you specified the codegen in daml.yaml though, so if you don’t care about the codegen simply drop that section.

ST
StephenOTT
Jun 2022

My thought was: Codegen is an on-demand function. The daml.yaml allows me to config it for reuse/future use.

Was the design basically saying “daml start” would be used when starting a sandbox and then on each start you would want to re-generate codegen based on changes? essentially making is a single command (no extra options needed ) ?

CO
cocreature
Jun 2022

Yes that was the idea, importantly, it also integrates with the reload functionality: If you change your model and reload that in your ledger you also need to regenerate your client code. Otherwise the two get out of sync.

ST
StephenOTT
Jun 2022

Great thanks!

← Back to Discussions