Fork me on GitHub
#leiningen
<
2022-08-22
>
Alastair Hole15:08:15

Hi all 🙂 I started using lein checkouts via the checkout directory, it seems to work well but the problem I have is that I no longer have any logs output to the console. I was doing this via resources/logback.xml and setting the level to info. If I move the checkouts directory out of the way then logging functions as expected. (`Leiningen 2.9.8 on Java 17.0.3 OpenJDK 64-Bit Server VM`). Is there something I have missed or could there be some conflict with the source of the dependency in checkouts?

Alastair Hole16:08:26

Ah yes it seems the logging configuration of the dependency is steamrollering that of the parent project, is there any way to avoid that?

vemv16:08:36

the simplest thing you could do is delete their file, it's on your machine anyway

vemv16:08:37

another way would be to ditch checkouts, and use :source-paths ["/Path/to/their-project/src"] that way you have their src but not their resources

Alastair Hole16:08:18

Ah that sounds good, that’s all I need really I think

🍻 1
Alastair Hole16:08:39

Is it common that one would want dependencies’ resources? It seems that source-paths would alway suffice

vemv16:08:10

Not sure if common, but it's a reasonable default :) e.g. it could declare necessary reader tags (https://clojuredocs.org/clojure.core/*data-readers*)

Alastair Hole08:08:22

Ah that’s interesting, thanks for the info 🙂 I am very new to Clojure

🙌 1