Re:Josh: Get the advantages of a monorepo with multirepo setups
by jayd16 on Thursday July 15, 2021 @11:52AM
(#27846155)
Its simple. Monorepos allows(does not force, nor guarantee) you to make bigger atomic changes to many projects at once.
You can update a library and all the downstream projects in a single commit. There's no race condition or caching problem of pulling an update without pulling/seeing the dependency update. You don't need to wait for dependency artifacts to build and propogate.
You can create a turn key build script that will build the world from source. You can skip any local artifact storage like Artifactory. You don't need to pull multiple repos in a serial fashion, no dependent pulls. You can structure your codebase such that if you pull one commit it can have no other dependencies.
The draw back is Git happens to not make it easy to pull just one folder. Other things like Perforce make it trivial.
You can update a library and all the downstream projects in a single commit. There's no race condition or caching problem of pulling an update without pulling/seeing the dependency update. You don't need to wait for dependency artifacts to build and propogate.
You can create a turn key build script that will build the world from source. You can skip any local artifact storage like Artifactory. You don't need to pull multiple repos in a serial fashion, no dependent pulls. You can structure your codebase such that if you pull one commit it can have no other dependencies.
The draw back is Git happens to not make it easy to pull just one folder. Other things like Perforce make it trivial.