From cdf0b3b7a6adef6dfd027a77c60e12f7f4750086 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Mon, 21 Aug 2023 23:47:02 -0700 Subject: [PATCH] modules: Make new cache directories read/write Leave newly-created directories in the module cache read-write instead of making them read-only. Closes #11369 --- modules/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/client.go b/modules/client.go index 53ce67cb3..7108c9bef 100644 --- a/modules/client.go +++ b/modules/client.go @@ -456,7 +456,7 @@ func (c *Client) listGoMods() (goModules, error) { } downloadModules := func(modules ...string) error { - args := []string{"mod", "download"} + args := []string{"mod", "download", "-modcacherw"} args = append(args, modules...) out := io.Discard err := c.runGo(context.Background(), out, args...)