caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: David Allsopp <dra-news@metastack.com>
To: Martin DeMello <martindemello@gmail.com>
Cc: "caml-list@inria.fr" <caml-list@inria.fr>
Subject: Re: [Caml-list] how do you develop multiple dependent projects simultaneously?
Date: Mon, 31 Jul 2017 20:43:40 +0000	[thread overview]
Message-ID: <1E2D3874-B3A7-46AB-8411-0411DF867596@metastack.com> (raw)
In-Reply-To: <CAFrFfuEnbmtvd3gXEfA+77SSyW5x4ekxTYnGjUpXpepY1y1krA@mail.gmail.com>

Martin DeMello wrote:
> I have a project that depends on two other libraries, both pinned to
> local git repos in opam. However I find it quite annoying to have to
> run opam update && opam install every time I make a change in the
> libraries, especially when I'm making small changes to all three
> projects at the same time. Is there any smoother workflow that people
> use?

This is something jbuilder handles really easily, as long as your dependent libraries also use jbuilder - all you have to do is checkout the dependent libraries in subdirectories of your project and jbuilder will build and use them instead of the opam packages. Once you're done working on the libraries, you do whatever's necessary to push your changes, update your opam package/pin and then delete the library's sub-directory and on your next build, jbuilder will automatically return to using the opam package.


David

  parent reply	other threads:[~2017-07-31 20:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-31 20:33 Martin DeMello
2017-07-31 20:41 ` Nicolás Ojeda Bär
2017-07-31 20:43 ` David Allsopp [this message]
2017-08-01  9:19 ` Gerd Stolpmann
2017-08-03 11:52 ` rixed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1E2D3874-B3A7-46AB-8411-0411DF867596@metastack.com \
    --to=dra-news@metastack.com \
    --cc=caml-list@inria.fr \
    --cc=martindemello@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).