tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
imre 2020-11-17T14:53:35.452700Z

Hey folks. I just ran into a problem at deps resolution: Error building classpath. Could not find artifact gcardone:junidecode:jar:0.2 in central (<https://repo1.maven.org/maven2/>) My project is not directly referencing this lib and I don't know where in the dep tree it is referenced from. Is there any way to trace this with the clojure command line?

borkdude 2020-11-17T14:55:16.452900Z

clojure -Stree

imre 2020-11-17T14:55:53.453400Z

Unfortunately that fails with the same error without printing anything useful. So do -Spath and -Strace

borkdude 2020-11-17T14:56:25.453600Z

oh right :)

borkdude 2020-11-17T14:56:32.453800Z

then bisect?

borkdude 2020-11-17T14:57:04.454200Z

maybe also try -Sforce which will force recreation of classpath

imre 2020-11-17T14:57:45.454700Z

bisect it is then

imre 2020-11-17T14:57:49.455Z

😞

imre 2020-11-17T14:57:57.455300Z

force does not help

dominicm 2020-11-17T14:59:36.455600Z

I'm surprised trace doesn't output anything. That would be pretty useful for this case.

dominicm 2020-11-17T14:59:55.455700Z

Is the secret verbose flag still a thing the?

alexmiller 2020-11-17T15:00:09.455900Z

no

alexmiller 2020-11-17T15:00:34.456400Z

there isn't a good answer for this right now other than tracing down the deps tree semi-manually

alexmiller 2020-11-17T15:00:50.456800Z

I've been looking at some new tools for questions like this

alexmiller 2020-11-17T15:01:17.457200Z

or you could -Spom and mvn dependency:tree

alexmiller 2020-11-17T15:01:25.457600Z

might get more info that way

imre 2020-11-17T15:01:30.457700Z

hmm could try that yeah

imre 2020-11-17T15:01:53.458Z

well, that also fails with the same I'm afraid

alexmiller 2020-11-17T15:02:52.458300Z

maybe mvn -X dependency:tree ?

imre 2020-11-17T15:03:31.458700Z

Sorry, I meant -Spom fails

alexmiller 2020-11-17T15:04:35.458900Z

oh, right :)

imre 2020-11-17T15:21:52.459500Z

found it in the end by reverting and updating deps one by one