3 ms·
If separate projects have independent builds maybe a monorepo was not a great idea to begin with? I have a big monorepo at work but whenever anything changes I
by simias 6y ago
If separate projects have independent builds maybe a monorepo was not a great idea to begin with?
I have a big monorepo at work but whenever anything changes I want to rebuild everything to generate a new firmware image. I have ccache setup to speedup the process given that obviously only a tiny fraction of the code actually needs to be rebuilt.
It's a bit wasteful, sure, but if I were to optimize it I'd be worried about ending up with buggy, non-reproducible builds. Easier to just recompile everything every time and make sure everything still works the way you expect.
So basically my approach is KISS, even if it means longer build times.