-
Notifications
You must be signed in to change notification settings - Fork 400
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
(optional) not respected in (executable) and (library) stanza #3970
Comments
Hello, unless I missed something, there doesn't seem to be any |
Sorry, something was lost in creating the repro, but the behaviour is the same |
https://github.com/ocaml/dune/blob/master/test/blackbox-tests/test-cases/optional-executable.t/run.t |
I was able to reproduce. Indeed it is puzzling. I am investigating. |
... and actually I think this is the expected behaviour. Indeed, this feature is meant to avoid adding hard-dependencies to OPAM packages, so you will get the desired behaviour only if you build the It would be great if you can confirm that you see the same behaviour. |
Thanks for the reply. I noticed that building I guess I can close this issue now. |
Expected Behavior
$ dune build
lwt
is not installed.Actual Behavior
Failed with missing
lwt
Reproduction
https://github.com/fangyi-zhou/dune-optional-repro
Specifications
dune
(output ofdune --version
): 2.7.1ocaml
(output ofocamlc --version
) 4.11.0dune
with the--verbose
flag):https://gist.github.com/fangyi-zhou/b41bfe07f77abd3219e1fdd09d408198
The text was updated successfully, but these errors were encountered: