-
Notifications
You must be signed in to change notification settings - Fork 13
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
opam-dune-lint gets the wrong package for some dependencies #53
Comments
This is a bug, by default opam-dune-lint also resolve the transitive dependencies because a public library could depends on a private library. It doesn't resolve the internal_deps which are public.
This is why we're seeing this bug. It could be easily solved by sharing a list of all the public libraries. |
This is a fix for the issue ocurrent#53. The public optional libraries were resolved.
This is a fix for the issue ocurrent#53. The public optional libraries were resolved.
This is a fix for the issue ocurrent#53. The public optional libraries were resolved.
the command
My bad, my description above had some mistake. The internal optional public libs were resolve this is why the bug. Fixed here #54. |
This is a fix for the issue ocurrent#53. The public optional libraries were resolved.
The fix is deployed on ocaml-ci, is it OK to close this issue ? @talex5 |
That seems to work - thanks for the quick fix! (it's now saying |
CHANGES: - Fix the issue ocurrent/opam-dune-lint#53. Skip resolving a public library when it is added as optional dependency(dune's libraries stanza) (@moyodiallo ocurrent/opam-dune-lint#54). - Print all the errors before the exit (@moyodiallo ocurrent/opam-dune-lint#55).
CHANGES: - Fix the issue ocurrent/opam-dune-lint#53. Skip resolving a public library when it is added as optional dependency(dune's libraries stanza) (@moyodiallo ocurrent/opam-dune-lint#54). - Print all the errors before the exit (@moyodiallo ocurrent/opam-dune-lint#55).
e.g. with Eio, ocaml-ci is currently reporting:
But none of these directories is (directly) part of the eio_main package anyway.
For example,
iomux
is a dependency only of theeio_posix
library, which is part of theeio_posix
package (see https://github.com/ocaml-multicore/eio/blob/60e67472e3726192c4f6b9fbff81db5eb15b8a27/lib_eio_posix/dune#L10).If I add
(package eio_posix)
to this, dune complains:And
dune describe
says:So dune is reporting that
iomux
is part ofeio_posix
.The text was updated successfully, but these errors were encountered: