News for hackers. Stuff that matters.
Re:Ask HN: Why are Git submodules so bad? by d_watt on Saturday June 18, 2022 @03:23PM (#31792923)
Interesting. When you say that's the problem they're intended to solve, do you have a link to that as their intended use case.

IE is that "a" usecase or "the" usecase? I've never seen submodules used for that, only for internal dep management, so if there's content about "what they're really for," I'd love to read more.

Re:Ask HN: Why are Git submodules so bad? by grogenaut on Saturday June 18, 2022 @03:56PM (#31793236)
When I worked in games we did exactly this but with perforce. All of our libraries were in a vendor tree and all in source. We slapped our own build over the top of them and checked in the build artifacts (perforce). If we needed an update, we updated their code and maybe our build script.

It'd be nice to use submodules for this but I gave up years ago.

The other big use is where you have your own libraries and you'd like to be able to share them across projects. My friend does game jams and has his own simple engine, he versions the engine and adds abilities and uses it across game projects.

Re:Ask HN: Why are Git submodules so bad? by theduder99 on Saturday June 18, 2022 @05:16PM (#31793889)
check the first paragraph on this page: https://git-scm.com/book/en/v2/Git-Tools-Submodules