gitlab & golang's "go get" (or default to .git repo extension)
Created by: smithwinston
Trying to use gitlab with golang. Let's say I have a repository as follows:
[email protected]:myuser/mygorepo
In my .go file, I can import it with:
import "example.org/myuser/mygorepo"
And I can fetch the dependency at the command line with:
go get example.org/myuser/mygorepo
The golang folks have put some work into this to make it work with github, code.google.com etc. but it doesn't quite work with gitlab.
In gitlab, since the repositories always end in .git, I must specify .git at the end of the repository name to make it work, for example:
import "example.org/myuser/mygorepo.git"
And:
go get example.org/myuser/mygorepo.git
Looks like github solves this by appending ".git" if necessary. I realize this isn't a huge problem, but it looks much nicer not to have to append ".git" to my import statements.
Any way to do the same with gitlab?