I use the version control system git for my software. And “within” the source code, I use go get to automatically fetch software from github. How can I handle the “double git” situation?
When I run git add on the directory src/github.com/somename/someproject, which is a git repository in itself, will this add anything? (it doesn’t look like this when I run git status)
Should I use git submodule for the git get added subdirectories?
What is the best practice in this situation?
Edit: I do have a custom $GOPATH environment for my software project. This is why the src/github.com/somename/someproject directory is found inside my software directory hierarchy.
While @nemo’s answer is probably the way to go, this is what I did: I stripped the
.gitand.gitignorefiles from thego getdownloaded repositories. The source path I have is inside my source directory:GOPATH=.../myproject/src/go/. That way all thego getdownloads are inside my project tree and I can just handle it with git.I think that this is what “goven” (see my comment on my question) is supposed to do, but I wasn’t able to get it to work.