-
Notifications
You must be signed in to change notification settings - Fork 396
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
OR and AND combinators in dune-project dependencies #3497
Comments
We could support this with a form like:
But that might be a bit annoying to parse if a package
Perhaps the form should be @jeremiedimino what do you think? |
Is |
Btw, a good test case for this feature would be dune's own dune-project (https://github.com/ocaml/dune/blob/master/dune.opam.template) |
Alright, we can go for |
I was hoping to avoid having to support OR for as long as possible, as it also puts quite a bit of strain on the opam solver. @cpitclaudel, you can work around by making a |
Thanks. @ppedrot, does that sound reasonable? |
Desired Behavior
I use dune to generate a .opam file. Currently, dune's dependencies language is weaker than OPAM's. OPAM allows
"coq-ltac2" | "coq" { >= "8.11~" }
to specify that a package needscoq-ltac2
orcoq >= 8.11
, but dune-project isn't as flexible.This flexibility is useful when a package is merged into another one, for example. In the concrete case above, coq-ltac2 requires
coq < 8.11
, and coq 8.11 includes the functionality formerly provided by coq-ltac2.Related: https://github.com/coq/coq/issues/12367
The text was updated successfully, but these errors were encountered: