From: Joe Mooring Date: Tue, 22 Aug 2023 06:47:02 +0000 (-0700) Subject: modules: Make new cache directories read/write X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=cdf0b3b7a6adef6dfd027a77c60e12f7f4750086;p=brevno-suite%2Fhugo 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 --- 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...)