GitLab is a free, open-source way to host private .git
repositories but it does not seem to work with Go. When you create a project it generates a URL of the form:
[email protected]:private-developers/project.git
where:
1.2.3.4
is the IP address of the gitlab serverprivate-developers
is a user group which has access to the private repo
Golang 1.2.1 doesn't seem to understand this syntax.
go get [email protected]:private-developers/project.git
results in:
package [email protected]/project.git: unrecognized import path "[email protected]/project.git"
Is there a way to get this to work?
go get
works, it uses import paths, not direct scm uris. Does your gitlab have https git access (like github)? – Ganoidgo get
on public projects: github.com/gitlabhq/gitlabhq/pull/5958. Worst case you can always just do the initial clone of the repo into your GOPATH manually – Ganoid