-
Notifications
You must be signed in to change notification settings - Fork 413
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
Transitive dependencies take precedence over source modules #597
Comments
This looks like a bug indeed. The dependency from Are |
Yep, they're both in https://github.com/timbertson/passe/tree/master/src/www - all these modules go into (brace yourself, I'm using
And FWIW:
|
Ok, I wrote a fix. BTW, even if the code builds, it's not guaranteed to link as unit names must be unique in OCaml. Though the error will probably be less cryptic that this one. |
I'm not very familiar with how ocaml handles module name clashes, but this doesn't seem right:
js_of_ocaml
andlwt
.selection.ml
which wraps some DOM selection functionalityI upgraded a bunch of libraries after a period of inactivity (including jbuilder + jsoo + lwt), and now I get this compiler error:
After a lot of guessing, I'm pretty sure it's using the
Section
module fromcompiler-libs
. I eventually figure out this is a transitive dependency ofjs_of_ocaml.weak
which my project does need, so there doesn't seem to be any way I can avoid the dependency.I'm not quite sure whether the issue is:
-I
flags so that my ownselection.ml
takes precedence over transitive dependencies (but will this actually work come link time?)compiler-libs
shouldn't be exposing such a generic toplevel module namejs_of_ocaml.weak
shouldn't depend on compiler-libs (or I shouldn't be depending onjs_of_ocaml.weak
)The text was updated successfully, but these errors were encountered: