ocaml / dune

A composable build system for OCaml.
https://dune.build/
MIT License
1.63k stars 406 forks source link

Add support for version comparison #1071

Open rgrinberg opened 6 years ago

rgrinberg commented 6 years ago

To get rid of -skip-versions, we must extend the boolean language to allow for version comparisions. Operators like ver=, ver>=, etc. would have to be added to blang. Opam already has such version comparing code, so all we need to do is to vendor the appropriate opam library (once it becomes available) to have the same version comparison mechanism.

Alizter commented 2 years ago

You mean this? https://github.com/ocaml/opam/blob/master/src/core/opamVersionCompare.ml