[go-nuts] Using modules with private repos

2020-03-11 Thread 'Bryan C. Mills' via golang-nuts
The protocol described in https://golang.org/cmd/go/#hdr-Remote_import_paths allows you to serve any repo URL for any import path that begins with your server's domain name. You can use basic auth with such a server via credentials stored in a .netrc file, which also works with git. -- You re

Re: [go-nuts] Using modules with private repos

2020-03-11 Thread Marcin Romaszewicz
There is really no nicer way. You do not have to make those .insteadOf overrides in your global git config, though, you can do it in the local git config for your Go repository to contain the damage. You will also find that private repositories don't work nicely with things like the Athens module p

[go-nuts] Using modules with private repos

2020-03-11 Thread Dean Schulze
The docs for modules assume that you'll be publishing your golang modules (actually a git push) to the few public repos that golang has built in support for. I want to use a private repo, but there doesn't seem to be any docs for that. This post