Skip to content
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

spurious failure with hidden libraries #29

Closed
avsm opened this issue Apr 26, 2021 · 2 comments
Closed

spurious failure with hidden libraries #29

avsm opened this issue Apr 26, 2021 · 2 comments

Comments

@avsm
Copy link
Member

avsm commented Apr 26, 2021

When using hidden libraries (as in https://github.com/mirage/ocaml-cf) that are only enabled on some switches (such as system = macos), opam-dune-lint throws up spurious failures that cannot be fixed in ocaml-ci:

File "lib_gen/dune", line 54, characters 27-41:
54 |  (modules bindgen bindings types_detected))
                                ^^^^^^^^^^^^^^
Error: Module Types_detected doesn't exist.
opam-dune-lint: internal error, uncaught exception:
                (Failure
                  "run ['dune' 'describe' '--format=csexp' '--lang=0.1']: exited with 1")
@talex5
Copy link
Contributor

talex5 commented Apr 27, 2021

This seems to be a dune bug:

$ git clone https://github.com/mirage/ocaml-cf.git
$ dune describe
File "lib_gen/dune", line 54, characters 27-41:
54 |  (modules bindgen bindings types_detected))
                                ^^^^^^^^^^^^^^
Error: Module Types_detected doesn't exist.

@moyodiallo
Copy link
Collaborator

This issue has been fixed since opam-dune-lint did not use dune decribe command.
There's now an issue(ocaml/dune#10779) opened in Dune that related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants