You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When users have their OCaml binding or project in a sub directory in their source repository there might be a disparity between the opam file they have in the source repository and the opam file they have to submit to opam-repository.
For instance, with the following source tree that mono-repo bindings can adopt:
The install file is located in a subdirectory and won't be picked up by opam. From opam-repository point of view a copy of the install file to the top-level directory is required. However from opam pin point of view there is no easy way of using the same opam file as for instance opam pin add --recursive . would enter the ocaml/lib directory and not stay in the top-level directory for the file copy needed by opam-repository (cp ocaml/lib/pkg.install .) to succeed.
This issue could be addressed in several ways. For instance:
We could handle every %{name}%.install from any subdirectories
In fact, everything is here (need to review subpath pinning code) to be able to support it. Main target here is opam repository, it needs to allow opam files with subpath field.
When users have their OCaml binding or project in a sub directory in their source repository there might be a disparity between the opam file they have in the source repository and the opam file they have to submit to opam-repository.
For instance, with the following source tree that mono-repo bindings can adopt:
The install file is located in a subdirectory and won't be picked up by opam. From opam-repository point of view a copy of the install file to the top-level directory is required. However from opam pin point of view there is no easy way of using the same opam file as for instance
opam pin add --recursive .
would enter theocaml/lib
directory and not stay in the top-level directory for the file copy needed by opam-repository (cp ocaml/lib/pkg.install .
) to succeed.This issue could be addressed in several ways. For instance:
%{name}%.install
from any subdirectoriessubpath
field in theurl
section and get the same behaviour as Recursive & subpath based pin #3499Both of these have their force and weaknesses.
Issue encountered in ocaml/opam-repository#16361
The text was updated successfully, but these errors were encountered: