Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: github private repos require special configuration #26134
What version of Go are you using (
I don't know, I just updated it before running it... how can I know the commit?
I don't think so, I exchanged the keys with github so my remote is like
Maybe I am able to reach the repository only via ssh?
If you can make the https form work then vgo (and old go get) will be happy. The two possible ways to do that are:
where APIKEY is an API key obtained from the GitHub API page with access to private repos.
changed the title from
x/vgo: Private repository not found
cmd/go: github private repos require special configuration
Jul 10, 2018
I don't know if this is the correct issue to comment on so please forgive me if it's not correct, I ended up here because of an Issue I am having with Gitlab. We have a project structure where we use subgroups for project organisation by client/project/repo. So our package import paths are 3 levels deep rather than the standard 2 you see on Github. This is fine except for an issue with
Gitlab recently did implement support for a HTTP header to override this behaviour over here: https://gitlab.com/gitlab-org/gitlab-ce/issues/42817 so we can send a
We could update our import paths to include a
I guess what we need is a way for
To add to the list of options in this space (#26134 (comment)), we should also add use of a keychain/keyring as a third option (which is independent of remote VCS). Instructions vary quite widely between platforms, unsurprisingly:
I've switched back from using the ssh solution on Linux to using Gnome keyring (even though I don't use Gnome) to great effect... not least because it can be used to unify all credentials.
@FiloSottile are there are any security implications that I'm unaware of with respect to the use of keychain/keyrings for this sort of thing?
With Go tip (f2131f6) I can use private repos without modules (with the
That final git fetch fails, but that hash exists in the private repo:
And it's on the remote (it's