Hacker News new | ask | show | jobs
by chongli 1198 days ago
By read-only dependency do you mean that you’re not a developer for those repositories? What if you do develop a library and then want to use it in an application?
3 comments

What is being meant (i presume) is that even if you are a developer of those repos, do not edit them within the host repo. Work on them separately, as if you were an independent developer, and then bump their revision as a submodule - the same you do with bumping a dependency version in your Makefile/package.json etc.
I assume read-only from the perspective of the dependent. Any fixes belong in the modules upstream repository, then pulled in to the dependent once pushed.
I consider microservices and submodules to be mainly a solution to organizational problems.