`daml start` runs codegen by default?
- StephenOTTOP
when running
daml startit seems to run codegen by default on first build. Is this by design? - cocreature
Yes it’s by design. Note that it only does this if you specified the codegen in
daml.yamlthough, so if you don’t care about the codegen simply drop that section. - StephenOTT
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 ) ?
- cocreature 1
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.
- StephenOTT
Great thanks!