Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure CLI by

As a way to deal with concurrency issues when compiling several projects in parallel I introduced a temporary compilation folder for each clojure instance (which is then merged with the primary cache in an atomic file move). The simplest way to specify this folder to JVM is by passing it on the command line. Unfortunately, when I run clojure using clojure script there seem to be no option to pass an extra classpath item. Would be great to introduce it. Something like:

clojure -Saddcp=/tmp/classes215632

that ends up adding /tmp/classes215632 to the overall classpath generated from deps.edn file.

1 Answer

0 votes

You can use something like -Sdeps '{:aliases {:extra {:extra-paths ["/tmp/classes215632"]}}}' -A:extra.