Fork me on GitHub
#tools-deps
<
2019-02-20
>
zetafish14:02:01

Does anyone know how to change the local maven repo folder when running clj so that jars are downloaded and searched for in a different folder than ~/.m2

Alex Miller (Clojure team)15:02:26

in deps.edn, set :mvn/local-repo "/foo/bar" at top level

👍 5
zetafish16:02:29

Thanks @alexmiller that works. Sadly enough it seems not possible to put this option in the :aliases. My problem is that I want the maven repo to be local to my source code when I run unit tests on my CI server. While when developing locally I want to just use the default ~/.m2. Are there plans to allow the key also in the :aliases? Or maybe I should revert to tricks like rewriting the deps.edn file on the CI server prior to running tests etc (ugh)

Alex Miller (Clojure team)16:02:03

you can use -Sdeps '{:mvn/local-repo "whatever"}' just on CI

zetafish16:02:13

Cool! I am just a beginner with tools-deps 🙂

dominicm16:02:04

My friend got this error when using brew on his mac, I don't use mac, so don't really understand why gcc is related to clojure at all?

Error: An exception occurred within a child process:
 CompilerSelectionError: clojure cannot be built with any available compilers.
Install GNU's GCC

Alex Miller (Clojure team)17:02:19

brew doctor is the generic "why is brew broken?"

Alex Miller (Clojure team)17:02:49

brew install clojure should not require anything to be compiled

Alex Miller (Clojure team)17:02:30

brew update updates brew itself

dominicm17:02:01

Does brew generally work without xtools?

dominicm17:02:14

installing xtools solved it, so I guess that's a dependency? /shrug

Alex Miller (Clojure team)17:02:16

I never understood how xtools is exactly involved, I guess to allow brew to compile stuff

dominicm17:02:11

yeah, but, unless it compiles rlwrap from source, I have no idea what it would be building.