3 ms·
I like Git Submodules very much. Are there any downsides to completely skip dependency managers of specific languages and just use submodules to handle depende
by TekMol 2y ago
I like Git Submodules very much.
Are there any downsides to completely skip dependency managers of specific languages and just use submodules to handle dependencies?
I don't mean code by 3rd parties. I mean the projects and libraries I write myself. I am tempted to try and handle my own code-reuse purely through git submodules. Would I encounter any problems?
- skinner927 2y agoWe used them for years for dependencies, but have instead moved to a monorepo because of how we want to do releases. We never had any issues while using submodules.
- imp0cat 2y agoI am not sure what exactly are you trying to achieve, but take a look at Meson Wraps.
- leni536 2y ago> Are there any downsides to completely skip dependency managers of specific languages and just use submodules to handle dependencies? Submodules suck once you encounter a diamond dependency problem.
- MereInterest 2y agoIt doesn’t even need to be a diamond to have dependency problems. Suppose I have two dependencies, A and B. Dependency A also depends on B. Now I have two copies of B, one from my submodule and one from A’s submodule, and there’s no guarantee that these are compatible versions.
- maleldil 2y agoIf your projects and libraries are public, your package manager will likely let you use Git references (usually commits/branches/tags) to define dependencies. I find that cleaner than submodules.