Closed nafg closed 5 years ago
Apparently the cause was a moduleDeps that included two modules one of which transitively depends on the other, making including that one redundant.
This can be more of an issue when there is a dependency diamond. If A depends on B and C which both depend on D, then D will be a transitive dependency twice.
Thanks for the bug report! Could you provide a minimal build file to reproduce the issue?
I tried the following, but it does not throw the exception you have seen:
[project]
scalaVersion = "2.13.0"
scalaJsVersion = "0.6.28"
[module.a.js]
moduleDeps = ["b", "c"]
sources = ["a/"]
[module.b.js]
moduleDeps = ["d"]
sources = ["b/"]
[module.c.js]
moduleDeps = ["d"]
sources = ["c/"]
[module.d.js]
sources = ["d/"]
scalaDeps = [
["org.scala-js", "scalajs-dom", "0.9.7"]
]
I haven't minimized it but here is the TOML version of my build: https://gist.github.com/nafg/bcad12fab7a9e4a858e04b8a6349961b
Thanks. I managed to minimise it:
[project]
scalaVersion = "2.12.8"
[module.shared]
sources = ["shared/"]
targets = ["jvm"]
[module.a]
sources = ["a/"]
targets = ["jvm"]
moduleDeps = ["shared"]
[module.b]
sources = ["b/"]
targets = ["jvm"]
moduleDeps = ["shared"]
[module.root]
sources = ["root/"]
targets = ["jvm"]
moduleDeps = ["a", "b"]