go mod golang.org replace

Skiy 2月前 39

replace 
	golang.org/x/build => github.com/golang/build latest
	golang.org/x/crypto => github.com/golang/crypto latest
	golang.org/x/exp => github.com/golang/exp latest
	golang.org/x/lint => github.com/golang/lint latest
	golang.org/x/net => github.com/golang/net latest
	golang.org/x/oauth2 => github.com/golang/oauth2 latest
	golang.org/x/perf => github.com/golang/perf latest
	golang.org/x/sync => github.com/golang/sync latest
	golang.org/x/sys => github.com/golang/sys latest
	golang.org/x/text => github.com/golang/text latest
	golang.org/x/time => github.com/golang/time latest
	golang.org/x/tools => github.com/golang/tools latest
	golang.org/x/xerrors => github.com/golang/xerrors latest

	google.golang.org/genproto => github.com/googleapis/google-cloud-go latest
	google.golang.org/api => github.com/googleapis/google-api-go-client latest
	google.golang.org/appengine => github.com/golang/appengine latest
	google.golang.org/genproto => github.com/googleapis/go-genproto latest
	google.golang.org/grpc => github.com/grpc/grpc-go latest
)

然后再执行

go mod tidy
最新回复 (1)
  • Skiy 2月前
    引用 2

    墙内建议使用 gitea.com

    replace (
    	golang.org/x/build => gitea.com/xgo/build latest
    	golang.org/x/crypto => gitea.com/golang/crypto latest
    	golang.org/x/exp => gitea.com/golang/exp latest
    	golang.org/x/lint => gitea.com/xgo/lint latest
    	golang.org/x/net => gitea.com/golang/net latest
    	golang.org/x/oauth2 => gitea.com/golang/oauth2 latest
    	golang.org/x/perf => gitea.com/golang/perf latest
    	golang.org/x/sync => gitea.com/golang/sync latest
    	golang.org/x/sys => gitea.com/golang/sys latest
    	golang.org/x/text => gitea.com/golang/text latest
    	golang.org/x/time => gitea.com/golang/time latest
    	golang.org/x/tools => gitea.com/xgo/tools latest
    	golang.org/x/xerrors => gitea.com/xgo/xerrors latest
    	google.golang.org/api => gitea.com/xgo/google-api-go-client latest
    	google.golang.org/appengine => gitea.com/xgo/appengine latest
    	google.golang.org/genproto => gitea.com/xgo/go-genproto latest
    	google.golang.org/go => gitea.com/xgo/google-cloud-go latest
    	google.golang.org/grpc => gitea.com/xgo/grpc-go latest
    )

    然后再执行

    go mod tidy
返回
发新帖