Fork me on GitHub
#leiningen
<
2016-05-04
>
ccann19:05:14

Hey all, is there a way to resolve the problem of having 2 dependencies in a project.clj that themselves have a dependency in common but w/ incompatible versions?

ccann19:05:06

dep A dependent on dep C ver 1 dep B dependent on dep C ver 2

ccann19:05:45

if I include dep C explicitly then the version is wrong for either A or B, depending on which version of C I include.

roberto19:05:28

look at exclusions

roberto19:05:56

ah, that might not work if the libraries are incompatible tho

ccann19:05:39

yeah, I did try :exclusions and ran into exactly that. thanks though @roberto

ccann22:05:03

I ended up dealing with the issue by factoring out part of the program into a separate one, which was an option in this case

danielcompton22:05:20

Fundamentally it’s just a really big problem

danielcompton22:05:07

aka Diamond Dependency Problem