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

package constraints in dune-project does not support not (!) #11205

Open
hannesm opened this issue Dec 13, 2024 · 0 comments
Open

package constraints in dune-project does not support not (!) #11205

hannesm opened this issue Dec 13, 2024 · 0 comments

Comments

@hannesm
Copy link
Member

hannesm commented Dec 13, 2024

Expected Behavior

I want to express the opam constraint: "foo" {with-test & >= "2.0" | ! with-test & >= "1.0"}

I can't since "not" nor "!" are supported.

Actual Behavior

Error: Unknown constructor !

Reproduction

in your dune-project

(package
 (depends
  (ocp-indent
   (or
    (and
     (! :with-test)
     (>= 1.0))
    (and
     :with-test
     (>= 2.0))))
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

1 participant