tools-deps

pithyless 2023-04-04T09:56:18.664939Z

What happens if a maven dependency adds <type>pom</type> ?

❯ clj -Srepro -Sdeps '{:deps {com.kohlschutter.junixsocket/junixsocket-core {:mvn/version "2.6.2"}}}'

Error building classpath. Could not find artifact com.kohlschutter.junixsocket:junixsocket-core:jar:2.6.2 in central ()

pithyless 2023-04-04T09:56:43.324789Z

Previous version that still works:

❯ clj -Srepro -Sdeps '{:deps {com.kohlschutter.junixsocket/junixsocket-core {:mvn/version "2.3.2"}}}'
Clojure 1.11.1
user=>

Kirill Chernyshov 2023-04-04T10:29:54.509469Z

I believe this is a known issue - https://clojure.atlassian.net/browse/TDEPS-202 for now the workaround is to look at pom.xml for junixsocket-core lib and get the same dependencies as inside of pom.xml into your deps.edn

pithyless 2023-04-04T10:34:11.869449Z

ah ok, I see. Thanks for the clarification!

Kirill Chernyshov 2023-04-04T10:52:36.848769Z

UPD: Please don't use this workaround, this is not supported btw I just tried this `clj -Srepro -Sdeps '{:deps {com.kohlschutter.junixsocket/junixsocket-core {:mvn/version "2.6.2" :extension "pom"}}}'` and it works.

1
🙏 1
Alex Miller (Clojure team) 2023-04-04T12:05:35.489159Z

I would not rely on that continuing to work reliably if it happens to now, this is currently not supported

pithyless 2023-04-04T12:06:11.686929Z

OK, thanks for the heads up!