-
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)
does not seem to work with executable
stanzas.
#4065
Comments
I can confirm this issue. Here's a gist to test: https://gist.github.com/toots/63144bf565f39be2ee248e724c90c128 I noticed that only Looks like the fix and test did not cover the case of a call to |
I believe this is the expected behaviour : Duplicate of #3970 |
This is, frankly, pretty odd. First, this is not the way it works for libraries, despite the documentation saying:
Second, this creates a situation where If that is the way the developers are intending it then this is unfortunate in my opinion. At the very least, the documentation should be updated to clarify this. |
cc @rgrinberg |
Closing as behaviour is expected. If there are suggestions for a different behaviour, please do open a new issue :) Cheers! |
Okay. This is a bit disappointing but I understand. |
I just wanted to point out that this issue is breaking all our CI builds at the moment b/c of some test executable that should only be built when I would really reconsider this semantics. |
This is again a consequence of ocaml/dune#4065
Expected Behavior
When flagged as
(optional)
, executable are skipped if a dependency is missing.Actual Behavior
When running
dune build
, a fatal error is raised because one of the dependecies of the optional executable is missing.It works as intended with libraries, and the document states it should behave the same on executables and libraries.
Reproduction
Specifications
The text was updated successfully, but these errors were encountered: