Fork me on GitHub
#tools-deps
<
2022-09-01
>
practicalli-johnny14:09:06

Is there much benefit (or disadvantage) of including the .cpcache directory when copying over the project to build inside a docker container? .cpcache is not currently included in the Git repository (and it doesnt feel like it should be), so its not used in our CI, so this would only be local (if its of use at all). Any thoughts or experiences welcome

dpsutton14:09:27

inside of there are lots of references to /Users/dan/.m2/… I suspect all of these paths are either (a) thrown away inside of the docker container so they don’t help at all, or (b) it will be an explicit error.

Alex Miller (Clojure team)16:09:37

you'll want to rebuild your .cpcache in the container to make the paths right, so better not to include. (can use clojure -P whatever to "prepare" the classpath - will include grabbing maven libs, making the classpath cache etc

practicalli-johnny17:09:11

Ah, that makes lots of sense. thank you.