You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[:message Could not resolve version conflict among
[io.grpc:grpc-protobuf-lite:jar:1.21.0 -> io.grpc:grpc-api:jar:1.21.0,
io.grpc:grpc-alts:jar:1.21.0 -> io.grpc:grpc-core:jar:[1.21.0,1.21.0] -> io.grpc:grpc-api:jar:[1.21.0,1.21.0],
io.grpc:grpc-stub:jar:1.25.0 -> io.grpc:grpc-api:jar:1.25.0,
io.grpc:grpc-protobuf:jar:1.21.0 -> io.grpc:grpc-api:jar:1.21.0,
io.grpc:grpc-api:jar:1.25.0, io.grpc:grpc-auth:jar:1.25.0 -> io.grpc:grpc-api:jar:[1.25.0,1.25.0]]]
Note: lein doesn't handle this exception very clearly because it doesn't implement getResult, I've had to patch leiningen.core.classpath/print-failures to look like this:
Ok I can confirm I can reproduce with your example. And that it doesn't happen in tools.deps.
My best guess is that it's most likely due to #91. Based on the -Stree output you pasted above the dependencies in that library seem pretty weird in that there appears to be a circular dependency on one of the transitive dependencies (i.e. it depends on itself), but I've not looked into it.
My suspicion is that this by flattening the tree we prevent resolution of this that causes a conflict. So I'd hope fixing #91 fixes this.
Using lein tools deps,
lein :tree
(anduberjar
,run
, and likely anything else that requires classpath resolution) don't run.A project that produces this error can be found here
Steps to reproduce:
Using the
0.4.5
release of lein-tools-deps and the latest version of the clojure cli:clj -Stree
lein deps :tree
, resulting in this error:https://maven.apache.org/resolver/maven-resolver-api/apidocs/org/eclipse/aether/collection/UnsolvableVersionConflictException.html
Note: lein doesn't handle this exception very clearly because it doesn't implement
getResult
, I've had to patchleiningen.core.classpath/print-failures
to look like this:clj -Stree
shows this (arrows are mine):All of the dependencies that generate conflicts are transitive dependencies inside this one.
Is this a bug with lein-tools-deps or should I expect this behaviour with some dependencies? Are there any workarounds?
Thanks for your help!
The text was updated successfully, but these errors were encountered: