The OxCaml CI has a job that relies on ocamlformat.0.24.1, and it started failing recently. We fixed it by pinning cmdliner to 1.3.0, but it looks like it reveals a missing constraint on the ocamlformat package so I'm filing this issue to let maintainers know.
From what we understand, when cmdliner 2 was released ocamlformat wasn't coinstallable with it because ocamlformat depends on ocp-indent, for which there was no version compatible with cmdliner 2 at that time.
Since then, ocp-indent.1.9.0 was released which is compatible with cmdliner 2.0, and the CI for the corresponding PR (#28630) shows failures that seem almost all related to cmdliner.
I suspect the right fix is to add constraints on the relevant ocamlformat or ocamlformat-lib packages, but I'd like to leave that to someone who is used to this sort of work (and may already have the right tools for that).