OCaml-CI should search for opam
file names in pin-depends or vendored git submodules
#826
Labels
opam
file names in pin-depends or vendored git submodules
#826
For a package
foo
, Dune expects or creates afoo.opam
file containing the opam package description. ocaml-ci looks for these files, and will also look foropam/foo.opam
.ocaml-ci/lib/pin_depends.ml
Lines 76 to 86 in e12b7dc
ocaml-ci/lib/pin_depends.ml
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.
The text was updated successfully, but these errors were encountered: