logoalt Hacker News

twictoday at 3:23 PM2 repliesview on HN

> A well done monorepo is a huge force multiplier on a large organization

How so?

I work at a company which uses a monorepo, and I haven't seen any upside to it yet. We have a tools team that's invested a vast amount of work in it. Still seems strictly worse than a 'normal' polyrepo setup. I haven't understood why so many people are so enthusiastic about it.


Replies

fastballtoday at 3:26 PM

Do you do any cross workspace/repo work, or are you mostly constrained to a single namespace?

show 1 reply
IshKebabtoday at 4:19 PM

1. No submodules. They suck. They don't work with worktrees. They're a pain to work with.

2. Cross-project changes become trivial instead of nightmarish.

3. Testing becomes tractable. Make a change in a submodule? Good luck testing that it doesn't break any of the other repos that depend on it. You essentially turn its API into a fully public API, which introduces a ton of extra work (if you do it right, which nobody does).