goproxy
goproxy copied to clipboard
could goproxy support mirror?
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", ]
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
.
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.