OctaForge/OF-Engine

Using git submodules for dependencies

Happy-Ferret opened this issue · 7 comments

Hi there.

Just wondering. Is there any particular reason dependencies like those required for a Mac OS X build aren't just linked to the project via the submodules feature?

IMHO, it would be a lot more straight forward than manually pulling in files from another repository and moving them to a directory inside /src.

q66 commented

they're OS X specific, not general submodules

Easy enough. I could write a platform specific script, if you don't mind.
People would just run the script they need the components for and git would only pull those submodules.

q66 commented

Nah, that's no good. With platform specific script it could pull these directly from upstream (which would be so far the best thing as it could get latest versions every time)

There are ways to link a submodule to upstream as well. Besides, what would happen if the codebase became incompatible to upstream?

Otherwise, I guess you're right. Might as well write a script to pull things in and install them from another repository or website.

q66 commented

a submodule is just another git repository, so if upstream uses git, you can mirror it, but here it's not the case

Fair enough.
Guess it's not worth arguing about.

Might give it a spin on my personal copy though, to satisfy my curiosity.

q66 commented

closing