diff options
author | Joe Mooring <[email protected]> | 2023-08-21 23:47:02 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2023-08-22 08:47:02 +0200 |
commit | cdf0b3b7a6adef6dfd027a77c60e12f7f4750086 (patch) | |
tree | e112ce13d83fd9975168c87672203be18ef6ebec /modules | |
parent | d979831dbd897975a73fcf884f35b6182920822b (diff) | |
download | hugo-cdf0b3b7a6adef6dfd027a77c60e12f7f4750086.tar.gz hugo-cdf0b3b7a6adef6dfd027a77c60e12f7f4750086.zip |
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
Diffstat (limited to 'modules')
-rw-r--r-- | modules/client.go | 2 |
1 files changed, 1 insertions, 1 deletions
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...) |