Skip to content
go get wrapper for self hosted private repos
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
bitbucket.go
bitbucket_test.go
github.go
github_test.go
gitlab.go
gitlab_test.go
main.go
repository.go
repository_test.go

README.md

goprepo

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:

  • Github
  • Gitlab
  • Gitlab Self-Hosted
  • Bitbucket

Installing

go get -u github.com/mediatestdigital/goprepo

Usage

prepo -r ssh://git@gitlab.yourdomain.com/group/project.git
You can’t perform that action at this time.