Skip to content

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

@hannesm

Description

@hannesm

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))))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions