by pjmlp · 4y ago · 0 comments
Naturally there is the caveat that using binary libraries isn't a thing in Go.
You either:
* Just don't test such changes at change time, break down and push the testing effort to downstream projects in disguise of "dependency management".
* Structure your engineering effort to avoid such changes, for example avoid having a base library shared between teams.
Neither is ideal for a corporation environment, because both harms velocity. We accept these in the "open source world" because we don't have better options, but the same does not hold for corps.
And now you get into the fun situation of having to handle ecosystemic asynchronous updates between your multiple repositories.
Our services aren't even particularly well-factored and we update median 2, mode 1, mean 3-4 when we change a core library. (Out of ~25.)
> We do that with all external dependencies.
Indeed. Why you’d want to also suffer that for internal dependencies when there is no reason to, I can’t fathom.
If you have a good process for external dependencies you can apply that to internal. If you don't have a good process for external dependencies a monorepo won't help (unless you make all your dependencies internal, which is even more expensive)
At that scale, anything reducing complexity is a bonus. At that scale, monorepos are great for that.