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 proxy, since you don't want your CI/CD systems hitting public
servers.

-- Marcin

On Wed, Mar 11, 2020 at 1:07 PM Dean Schulze <dean.w.schu...@gmail.com>
wrote:

> 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
> <https://medium.com/cloud-native-the-gathering/go-modules-with-private-git-repositories-dfe795068db4>
>  has
> some suggestions, but it relies on entries in .gitcofig that will interfere
> with normal access to those public repos.  It doesn't mention using ssh
> keys for authentication.  I assume this is what go does for the public
> reops it has built in support for.
>
> I hope there is a better way.  Is there?
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/c49ab83c-315c-4de1-9225-7f34d9cf395d%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/c49ab83c-315c-4de1-9225-7f34d9cf395d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CA%2Bv29LtbpOFAHvqMX5bYSE8%2BinLCv7OeKxMmSZ5NcAwYkz_8zA%40mail.gmail.com.

Reply via email to