4 ms·
I haven't written much go, so I'm just riffing here, but could you do something similar to what the author is suggesting with git submodules?
by vkjv 11y ago
I haven't written much go, so I'm just riffing here, but could you do something similar to what the author is suggesting with git submodules?
- DrJokepu 11y agoYes, you absolutely could. You wouldn't even need to fork the dependencies.
- skj 11y agogit submodules are sort of a pain to manage. I think they've more or less failed as a git feature.
- sanderjd 11y agoI think this is a perfect use case for `git subtree`[0]. It actually pulls everything in-repo, but can squash their history and do some other conveniences. I've always been surprised at its relative obscurity – maybe because of a terminology conflict with "subtree merges" – because it's so useful. I haven't actually used it for go dependencies, but it seems like it would be a good fit. [0]: https://github.com/git/git/blob/master/contrib/subtree/git-subtree.txt https://github.com/git/git/blob/master/contrib/subtree/git-s...