Skip to content

Commit 607b78e

Browse files
committed
cmd/go-cache-plugin: proxy sum.golang.org by default
1 parent 1dc481e commit 607b78e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/go-cache-plugin/commands.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ func runServe(env *command.Env) error {
180180
GoBin: "/bin/false",
181181
Env: []string{"GOPROXY=https://proxy.golang.org"},
182182
},
183-
Cacher: cacher,
183+
Cacher: cacher,
184+
ProxiedSumDBs: []string{"sum.golang.org"}, // default, see below
184185
}
185186
if serveFlags.SumDB != "" {
186187
proxy.ProxiedSumDBs = strings.Split(serveFlags.SumDB, ",")

0 commit comments

Comments
 (0)