OCaml-CI should search for `opam` file names in pin-depends or vendored git submodules
MisterDA opened this issue · 0 comments
For a package foo
, Dune expects or creates a foo.opam
file containing the opam package description. ocaml-ci looks for these files, and will also look for opam/foo.opam
.
Lines 76 to 86 in e12b7dc
Lines 140 to 144 in e12b7dc
Historically, or for projects not using the Dune build system (brr, topkg, Oasis, Makefiles…), the opam file is simply named opam
.
Although ocaml-ci won't work on these projects (as it calls Dune directly and not opam), it should work with these projects being pinned using opam, or vendored: the pin-depends or vendored might carry patches or features necessary for the root project.
This shouldn't be super hard and could also be a nice little case for refactoring a piece of code. I suggest making sure that ocaml-ci stops looking for opam files as soon as the first conforming file is found.