Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Cache directories of `daml build`Forum ↗

Cache directories of `daml build`

App Development5 posts331 views6 likesLast activity Apr 2020
RA
Ratko_VeprekOP
Apr 2020

Is there a way to define where the daml build command is placing the .daml directory?

If I run

cd /some/random/cwd
daml build --project-root /path/to/daml/project/foo --output /some/output/path

then the .daml directory ends up in /path/to/daml/project/foo where the daml.yaml exists. However, this confuses our build system as then the build system thinks that the project directory changed.

CO
cocreature
Apr 2020

Right now there is no way to configure this directory. However, it wouldn’t be too hard to add. Maybe an environment variable would be a good option?

RA
Ratko_Veprek
Apr 2020

I think using command line arguments would be better as this would be consistent with the UX of daml build.

CO
cocreature
Apr 2020

Works for me as well. I was mainly suggesting an environment variable because I’ve seen that quite commonly for other tools that have some caching directory.

GA
Gary_Verhaegen
Apr 2020

If you’re adding new options, would you mind trying to revive/conclude the discussion on Review and refactor Sandbox, JSON API, Extractor and maybe Navigator configurations · Issue #4610 · digital-asset/daml · GitHub first?

← Back to Discussions