-
-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multi-module dependency resolving broken (duplicates) #211
Comments
maybe; what's your build? |
My build is a big 20+ module project, where some modules bring in akka through a transitive dependency from it's own dependency Anything more specific you want me to mention? |
can you poke around the build using |
I made it even worse by adding more dependencies to other versions of akka On the modules level On the ivy level but when I do the following
Using sbt |
I don't really know any reason mill should allow it, but there might be bugs, hence So you have a big 20+ module project; just delete everything you can while reproducing this bug. You shouldn't even need any source files present, just the Once the project is minimized, let me know and maybe the problem will be clearer. Perhaps you may even spot the issue yourself |
I created a very simple reproducer (just the build file needed) here: https://github.com/francisdb/milltest Direct dependencies are deduplicated, module-transitive ones are not |
the main issue seems to be here You can't just use the |
@francisdb nice find, yeah we probably should restrict |
I fear I don't feel enough at home with all these scopes and dependencies to be able to fix this. |
…odule's `runClasspath`; only the ivy coordinates are aggregated, and every module resolves it's own set of ivy jars using coursier, which avoids duplicate jars entering the classpath through ivy Fixes #211
@lihaoyi I can confirm this to be fixed! |
…odule's `runClasspath`; only the ivy coordinates are aggregated, and every module resolves it's own set of ivy jars using coursier, which avoids duplicate jars entering the classpath through ivy Fixes com-lihaoyi#211
I seem to be getting 2 versions of the same dependency in the classpath, should mill not be taking care of these?
simple test case available here:
https://github.com/francisdb/milltest
The text was updated successfully, but these errors were encountered: