--- go/src/cmd/go/internal/cfg/cfg.go.orig	2023-07-30 20:09:07.754216000 +0800
+++ go/src/cmd/go/internal/cfg/cfg.go	2023-07-30 20:09:46.037239800 +0800
@@ -383,8 +383,8 @@
 	GOPPC64  = envOr("GOPPC64", fmt.Sprintf("%s%d", "power", buildcfg.GOPPC64))
 	GOWASM   = envOr("GOWASM", fmt.Sprint(buildcfg.GOWASM))
 
-	GOPROXY    = envOr("GOPROXY", "https://proxy.golang.org,direct")
-	GOSUMDB    = envOr("GOSUMDB", "sum.golang.org")
+	GOPROXY    = envOr("GOPROXY", "https://repo.huaweicloud.com/repository/goproxy/,direct")
+	GOSUMDB    = envOr("GOSUMDB", "sum.golang.google.cn")
 	GOPRIVATE  = Getenv("GOPRIVATE")
 	GONOPROXY  = envOr("GONOPROXY", GOPRIVATE)
 	GONOSUMDB  = envOr("GONOSUMDB", GOPRIVATE)
--- go/src/cmd/go/testdata/script/mod_sumdb_golang.txt.orig	2023-07-30 20:09:55.992971800 +0800
+++ go/src/cmd/go/testdata/script/mod_sumdb_golang.txt	2023-07-30 20:10:32.184846600 +0800
@@ -2,12 +2,12 @@
 env GOPROXY=
 env GOSUMDB=
 go env GOPROXY
-stdout '^https://proxy.golang.org,direct$'
+stdout '^https://repo.huaweicloud.com/repository/goproxy/,direct$'
 go env GOSUMDB
-stdout '^sum.golang.org$'
+stdout '^sum.golang.google.cn$'
 env GOPROXY=https://proxy.golang.org
 go env GOSUMDB
-stdout '^sum.golang.org$'
+stdout '^sum.golang.google.cn$'
 
 # Download direct from github.
 
