3 ms·
Submodules are great for projects where your code depends on upstream Git repos that you don't control and don't want to vendor yourself. I recently did an emb
by nrclark 2y ago
Submodules are great for projects where your code depends on upstream Git repos that you don't control and don't want to vendor yourself.
I recently did an embedded Linux design that depended on 5 external repositories: one from Yocto, three from OpenEmbedded, and one from a CPU vendor. My own code just sat on the top of this set of repos.
Submodules made that design very simple. One repo with all of my code in it, and submodules for all external repos. All dependent repos were pinned before of how submodules work. Pins were easy to update when desired, and never move on their own.
- maleldil 2y agoIsn't that because you didn't have a good package manager to handle these? If you have a package manager that allows you to add packages from Git repos, why would you use submodules?
- nrclark 2y agoIs there a specific package manager that you're thinking of? I'm always open for recommendations.