caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] (dune/opam) Proper way of vendoring a library inside an application?
@ 2020-01-31  8:48 François Pottier
  2020-01-31 13:08 ` François Bobot
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: François Pottier @ 2020-01-31  8:48 UTC (permalink / raw)
  To: caml users


Dear fellow OCaml users,

I am trying to figure out how to "vendor" (embark) a private
copy of a library inside a project. (Concretely, I would like
to vendor Fix inside Menhir.) I want this fact to remain
invisible, that is, installing Menhir should not result
in installing or upgrading the user's public copy of Fix.

I have copied the source tree for Fix inside the source tree
for Menhir, and added a (vendored_dirs fix) stanza in Menhir's
toplevel "dune" file.

Compilation works fine, but installation does not seem to work
the way I wish:

* "dune install" installs Menhir *and Fix*, though I would like
   it to install Menhir only.

* Attempting to pin Menhir using "opam pin" fails because opam
   cannot find Fix (inded, Fix is not globally installed).

I have tried removing (public_name fix) from fix/src/dune, but
then the compilation of Menhir fails (Fix cannot be found).

I am confused... what's the proper way of embarking a private
library inside an application without installing it globally?

Thanks!

-- 
François Pottier
francois.pottier@inria.fr
http://cambium.inria.fr/~fpottier/

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2020-03-02  9:33 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-31  8:48 [Caml-list] (dune/opam) Proper way of vendoring a library inside an application? François Pottier
2020-01-31 13:08 ` François Bobot
2020-01-31 14:53   ` François Pottier
2020-02-03 10:26 ` Jeremie Dimino
2020-02-03 14:16   ` Jeremie Dimino
2020-02-03 14:53     ` François Pottier
2020-02-03 23:13       ` Jeremie Dimino
2020-02-04  9:10         ` François Pottier
2020-02-06 22:33           ` Jeremie Dimino
2020-02-10  9:37             ` [Caml-list] dune for OCaml < 4.07? François Pottier
2020-02-10 10:18               ` David Allsopp
2020-02-10 10:33                 ` François Pottier
2020-02-10 11:27                   ` David Allsopp
2020-02-29  8:41 ` [Caml-list] (dune/opam) Proper way of vendoring a library inside an application? Richard W.M. Jones
2020-02-29 11:20   ` François Pottier
2020-03-02  9:33     ` François Bobot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).