-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How does obuild compile dependencies? #132
Comments
I'm not sure I understand what you mean by "dependent project". If you mean opam project (external and compiled) then no, if you mean a subdirectory in a large source tree, then yes. |
Yes, it does. For
Here's what
I need How can I achieve this convention with
One other difference (which isn't critical, but would be nice to unify on) is how For example if you have:
It makes sense that you should only be able to see the immediately modeled dependencies, which is (in CommonML, encoded by the file system structure) (I didn't make the file system structure up, that's part of the spec for |
The convention I chose for any module inside your project's I understand if this doesn't work for you and you don't agree, but maybe The real power of build systems like this is when you can start getting momentum around something that becomes common, and I'd gladly retire |
I wrote CommonML because I wanted a way to automatically namespace based on dependencies, instead of by file path.
https://github.com/jordwalke/commonml
Can
obuild
do something similar? So ifMyProject
hasutils.ml
andYourProject
hasutils.ml
, any source file inMyProject
can accessYourProject.utils
automatically.CommonML automatically tracks dependencies across projects and recompiles any changes to your dependent projects. It does this by assuming your dependency source code is installed in
node_modules
. Basically, I really like the sound ofobuild
and I might be able to just replaceCommonML
and point people toobuild
if it can automatically build dependent projects (for some customizable definition of dependent - in my case, it means something inside the local./node_modules
directory).The text was updated successfully, but these errors were encountered: