-
I've noticed that the code of libraries have been copied into libgit2 instead of being used in place as submodules. The problem with this is that you lose the ability to easily update the code utilized and it further complicates licensing. This raises the question: why are libraries bundled instead of using submodules? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Submodules aren't actually a very appropriate use here. Some of our dependencies — notably, xdiff — doesn't actually have its own upstream repository. https://github.com/git/git is its upstream repository, and I don't want to make git a submodule of libgit2. Even the ones that do live in their own directory have changes to fit into our build system. Even ntlmclient, which is basically written for libgit2, doesn't include cleanly. And bringing in some other repo as a submodule and then hacking at it to change it is going to be deeply unsatisfying. I'm not sure what this has to do with licensing? |
Beta Was this translation helpful? Give feedback.
Why do you believe that you would need to incorporate the license if it's bundled in-tree but it would be different if it would be bundled as submodules? How does the resultant binary change and how does the license affect that?
Is this opinion driven by discussions with your IP counsel?
In any case, I'm unlikely to start using submodules for our dependencies. The ergonomics are not good for the libgit2 developers or our users.