jarv.org

Never use git submodules

I’m writing this as a reminder to my future self never to use git submodules. For most things I would say never say never but let’s make an exception for this one.

I’ve used submodules for the following reasons:

The problem is that this 1-to-many thing usually starts as 1-to-2 and usually doesn’t go much further than that. It’s always this could eventually increase in scale but usually those hunches are wrong.

So where does it fall down? It seems like it rarely works well:

My alternative for now for better gitops workflows is mono-repo everything, this seems to work better with CI anyway