I have a Dune project consisting of two executables, each defined with the executable stanza in their own subdirectories.
One of the executables uses the Bos library to invoke the other executable; it’s a “driver” of that executable.
Suppose the first exectuable is called emit and the second executable is called package.
I’d like to ensure that emit has been been built by Dune before I try to invoke it with package (otherwise, I might get a “file not found” error, or changes to emit might not be visible when I invoke package).
As far as I can tell, I cannot add arbitrary dependencies to the executable stanza of Dune.
Is there a solution? Perhaps I’m going about this the wrong way?