Closed rand00 closed 2 years ago
Hmm, interesting. So, to work with mirage4, we'll need to put the unikernel into a separate directory? Fine with me if it is needed, so maybe use a unikernel
subdirectory?
Also related to this, I would have thought that it would be easy to make ones own local dune libs (as opam-monorepo
builds on dune
), and then depende on them in the unikernel.
This doesn't seem to be the case, as opam-monorepo
needs dependencies to be in opam. One apparantly need to opam pin
the local lib first - which must be how mirage-www
does it, though I havn't been able to find the place where this is done (mirageio
is the local lib, placed in the lib
dir)
Sorry for reopening this. I want to test some changes to http-mirage-client
, but I get a solver error because mirage emits a constraint >= 0.0.1 & < 0.1.0
on http-mirage-client
, but it is assigned version zdev
. It's unclear to me how I can get around this constraint. Any suggestions?
When running
from root of project, the unikernel is compiled correctly with opam-monorepo - but I get the following error for the client:
Otoh. if I compile the client from within the client dir, opam is used rather than duniverse - and one doesn't get the error.
I imagine that with mirage-4 it makes more sense to put the unikernel related files in separate dir, like
mirage-www
does, and compile from there? (there themirage
dir is used) This way dune doesn't try to compile non-unikernel executables using theduniverse
dir