Closed maxRN closed 1 day ago
dune pkg lock adds cohttp version 6.0.0~beta2 https://ocaml.org/p/cohttp/6.0.0~beta2
dune pkg lock
Fails with:
Error: Unable to solve dependencies for the following lock directories: Lock directory dune.lock: Can't find all required versions. Selected: pkg_repro.dev - cohttp -> (problem) pkg_repro dev requires = 6.0.0~beta2 Rejected candidates: cohttp.5.3.1: Incompatible with restriction: = 6.0.0~beta2 cohttp.5.3.0: Incompatible with restriction: = 6.0.0~beta2 cohttp.5.2.0: Incompatible with restriction: = 6.0.0~beta2 cohttp.5.1.0: Incompatible with restriction: = 6.0.0~beta2 cohttp.5.0.0: Incompatible with restriction: = 6.0.0~beta2 ...
Link to reproduction repository. Manual steps:
(cohttp (= 6.0.0~beta2))
dune
dune --version
"Dune Developer Preview: build 2024-11-20T02:20:21Z, git revision 5ac095c7c0c13ba5bf2de1becbe512d893c4e72b"
ocaml
ocamlc --version
Output of dune pkg lock --verbose:
dune pkg lock --verbose
Shared cache: enabled Shared cache location: /Users/maxrn/.cache/dune/db Workspace root: /Users/maxrn/code/dune-pkg-repro Auto-detected concurrency: 10 Running[3]: (cd /Users/maxrn/.cache/dune/git-repo && /etc/profiles/per-user/maxrn/bin/git ls-remote https://github.com/ocaml-dune/opam-overlays.git) > /var/folders/gr/fh9_6fn53l7f4sczxc4xphv40000gn/T/dune_eb9628_output Running[4]: (cd /Users/maxrn/.cache/dune/git-repo && /etc/profiles/per-user/maxrn/bin/git ls-remote https://github.com/ocaml/opam-repository.git) > /var/folders/gr/fh9_6fn53l7f4sczxc4xphv40000gn/T/dune_abe6be_output Error: Unable to solve dependencies for the following lock directories: Lock directory dune.lock: Can't find all required versions. Selected: pkg_repro.dev - cohttp -> (problem) pkg_repro dev requires = 6.0.0~beta2 Rejected candidates: cohttp.5.3.1: Incompatible with restriction: = 6.0.0~beta2 cohttp.5.3.0: Incompatible with restriction: = 6.0.0~beta2 cohttp.5.2.0: Incompatible with restriction: = 6.0.0~beta2 cohttp.5.1.0: Incompatible with restriction: = 6.0.0~beta2 cohttp.5.0.0: Incompatible with restriction: = 6.0.0~beta2 ...
Absolutely not sure about it but may be related to #11136.
Yup, it's a duplicate.
Expected Behavior
dune pkg lock
adds cohttp version 6.0.0~beta2 https://ocaml.org/p/cohttp/6.0.0~beta2Actual Behavior
Fails with:
Reproduction
Link to reproduction repository. Manual steps:
(cohttp (= 6.0.0~beta2))
to dependencies.dune pkg lock
Specifications
dune
(output ofdune --version
):ocaml
(output ofocamlc --version
): NoneAdditional information
Output of
dune pkg lock --verbose
: