Skip to content

Unable to pin or lock opam file with {= version} #4832

@bikallem

Description

@bikallem

Hi,
Consider the following as part of an opam file (https://github.com/lemaetech/wtr/blob/main/wtr-ppx.opam):

depends: [
  "dune" {>= "2.8"}
  "ocaml" {>= "4.12.0"}
  "uri" {>= "4.2.0"}
  "wtr" {= "version"}
  "ppxlib" {>= "0.22.0"}
  "odoc" {with-doc}
]

When I issue the command opam pin . , I get the following error,

[ERROR] Package conflict!
  * Missing dependency:
    - wtr >= version
    no matching version

Due to this opam lock ./wtr-ppx.opam also fails with the following error:

[ERROR] Package conflict!
  * Missing dependency:
    - wtr >= version
    no matching version

It seems we can't pin or lock packages where the dependency constraint contains {= version}. I am using opam 2.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions