So you’re saying it is common to put git submodules without using them?
The thing is, if I put a git submodule then I can’t even check out the full repo properly without it so I don’t understand how that is not a hard dependency. Now whether it’s actually used at runtime by the software, how do you know it is just because it appears in Maven, NPM, …? It is possible to list things in there too that aren’t actually made use of.
In the end I think this should come down to why people usually add git submodules. I think it’s rare that people put them and they’re not a build & runtime dependency. And it would add a lot to have those dependencies mapped out as well, since it’s the universal way to put dependencies when not using a package manager. (GitHub could still ignore git submodules and prefer the package manager files if any recognized ones are present.)
So any chance this will be changed?