Using a self-hosted Gitlab (using a non standard ssl port (443) and non standard ssh port (22)) installation, we were having problems using "go get" with private repositories. The workaround for us was to init the repository in our $GOPATH using a ssh-key. In our CI pipelines we always had to repeat the same task. So we thought we would script it to make it a little neater.
Currently only Repos with Public SSH Key access from following providers are supported:
- Gitlab Self-Hosted
go get -u github.com/mediatestdigital/goprepo
prepo -r ssh://email@example.com/group/project.git