[opam-devel] depopt constraints not respected

Anil Madhavapeddy anil at recoil.org
Sat Apr 5 14:33:36 BST 2014


With the React 1.0 API incompatibility now in the repository, it highlights that depopt constraints in OPAM 1.1.x aren't always respected.

See:
https://github.com/ocaml/opam-repository/pull/1863

which results in Lwt.2.4.4 and React.1.0.0 being selected despite Lwt.2.4.4 having a depopt of React<"1.0.0".

https://travis-ci.org/ocaml/opam-repository/jobs/22335518

# File "src/react/lwt_react.ml", line 384, characters 4-10:
# Error: This function has type
#          ?eq:('a -> 'a -> bool) ->
#          'a React.signal React.signal -> 'a React.signal
#        It is applied to too many arguments; maybe you forgot a `;'.
# Command exited with code 2.

Right now the workaround has to be to put a hard "react<1.0.0" in every dependency. Is that the only way?

-anil


More information about the opam-devel mailing list