Skip to content

Lower bound check DYI

Shon Feder edited this page Jun 13, 2025 · 3 revisions

Testing lower bounds locally

The best we know how to do properly at the moment without taking too much time is to do it step by step (same as our CI does currently).

Using opam >= 2.2, run

opam install --solver=builtin-0install "--criteria=+count[version-lag,solution]" .

in a fresh local switch at the root of the project you want to test (or replacing . with your package name).

Lower bounds checks in our CI

You may also want to incorporate this into your CI, as shown in modern-ocaml example project.

References

Discussed in https://github.com/ocaml/opam-repository/pull/19149

Clone this wiki locally