Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I think @bobot's answers are adequate to address the issue and there's no bug to report. Moving to discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Desired Behavior
The docs give this example of a
dune-project
:I want to do a something similar: I want to have two packages,
myproject
andmyproject-types
(so people who don't want to pull in all the dependencies ofmyproject
can still access the types), and I'd like their code to be kind of intermingled in the same folder structure, to keep the type definitions close to the code that uses those types. Naturallymyproject
will have to depend onmyproject-types
.I can write something like the above and it works mostly fine. But there are two problems:
Installing dependencies:
myproject-types
gets added tomyproject.opam
, butmyproject-types
isn't on opam so installing the project dependencies withopam install --deps-only myproject.opam
doesn't work (since it can't findmyproject-types
on opam).Actually building: if we get all the other dependencies installed,
dune build
actually works fine since it'll build bothmyproject-types
andmyproject
, butdune build -p myproject
doesn't because dune complains of not being able to findmyproject-types
.So my feature request is some kind of support for this use case, or advice for how to go about something like this :D
Beta Was this translation helpful? Give feedback.
All reactions