Closed ghost closed 7 years ago
Can you install conduit (cohttp depends on conduit)? Probably related to https://github.com/mirage/ocaml-conduit/issues/225.
Thanks for the response.
I can't install conduit either - exact same story. Let me know if there's anything else you want me to try to confirm it's not a cohttp issue- my gut feeling tells that it's an opam issue on my end.
I just did some further investigation with the help of the ocaml IRC channel:
conduit requires ppx_deriving, and ppx_deriving is not available for ocaml 4.05
$ opam install ppx_deriving
[ERROR] ppx_deriving is not available because your system doesn't comply with ocaml-version >= "4.02.1" &
ocaml-version < "4.05" & opam-version >= "1.2".
Which I think means cohttp and 4.05 won't mix?
You can try: opam pin add conduit --dev-repo opam pin add cohttp --dev-repo --dev-repo Pin to the upstream package source for the latest development version It worked for me (with the current state of conduit and cohttp repositories).
It means that ppx_deriving and ocaml 4.05.0 don't mix unfortunately. Luckily, as @alrev alluded to, cohttp in master no longer uses ppx_deriving so I will close this as fixed in master.