Hacker News new | ask | show | jobs
by nickdandakis 1535 days ago
Have you used git submodules before? I've only used them once and vowed to never use them again.

It's effectively just a pointer to a hash, and ends up being useless for versioning + a really nice footgun for tracking upstream updates.

The monorepo vs manyrepo tradeoff boils down to this:

Do you want more complicated build + deploy tooling or do you want more complicated dependency management?

If the former, pick monorepo. If the latter, pick manyrepo.

1 comments

This is the best summary of the topic I've read. Having used all three (submodules, monorepo, manyrepo) the only thing I can say with any certainty is - don't use submodules. The mono/manyrepo decision is not as clear cut but your description nails it.

Edit: submodules IS a viable solution for truly third-party repos over which you have no control and don't expect to ever edit.

Have you ever tried contributing to Qt? I rather liked their use of submodules. https://github.com/qt/qt5