goproxy icon indicating copy to clipboard operation
goproxy copied to clipboard

could goproxy support mirror?

Open gosp opened this issue 6 years ago • 2 comments

To install goproxy inside Greatwall, mirror is essential.

Repository mirrors

Mirrors = [ "golang.org/x/(.*) => github.com/golang/$1", "google.golang.org/appengine => github.com/golang/appengine", "google.golang.org/genproto => github.com/google/go-genproto", "google.golang.org/grpc => github.com/grpc/grpc-go", "google.golang.org/api => github.com/googleapis/google-api-go-client", "cloud.google.com/go => github.com/googleapis/google-cloud-go", ]

gosp avatar Feb 23 '19 03:02 gosp

Haha, intresting.

Have you tried replace? when-should-i-use-the-replace-directive

Later, when the plugin mode comes, maybe goproxy will support repository mirrors.

hxzhao527 avatar Feb 24 '19 03:02 hxzhao527

I'd expect that the client don't need contact any other server, expect proxy server( inside great wall ), so no need to touch github.com, golang.org, google.com.

chinglinwen avatar Aug 09 '19 02:08 chinglinwen