I wanted to check out the latest cohttp.
In order to build everything in cohttp, I wanted to install all the dependencies. So I tried something like this:
$ mkdir cohttp
$ cd cohttp
$ opam switch create . 5.0.0 -y
$ git clone git clone https://github.com/mirage/ocaml-cohttp.git
$ cd ocaml-cohttp
$ opam install . --deps-only --with-test
But I get this error message:
[ERROR] Package conflict!
* Missing dependency:
- http < 6.0.0~alpha0
no matching version
No solution found, exiting
Question: Why does this fail?
This is perplexing because the http
package comes with the ocaml-cohttp
git repository. The .
should take all *.opam
Interestingly, by simply omitting cohttp-bench.opam
and explictly listing everything else and asking for --deps --with-test
the following succeeds:
opam install ./cohttp.opam ./http.opam ./cohttp-top.opam ./cohttp-lwt-unix.opam ./cohttp-lwt-jsoo.opam ./cohttp-lwt.opam ./cohttp-mirage.opam ./cohttp-server-lwt-unix.opam ./cohttp-eio.opam ./cohttp-curl.opam ./cohttp-curl-async.opam ./cohttp-curl-lwt.opam ./cohttp-async.opam --deps-only --with-test
Each package has a "http" {= version}
requirement.
BTW cohttp-bench
is not a package on the opam repository. Does this have something to do with it?