modules: Make new cache directories read/write - hugo - [fork] hugo port for 9front
(HTM) git clone git@git.drkhsh.at/hugo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit cdf0b3b7a6adef6dfd027a77c60e12f7f4750086
(DIR) parent d979831dbd897975a73fcf884f35b6182920822b
(HTM) Author: Joe Mooring <joe@mooring.com>
Date: Mon, 21 Aug 2023 23:47:02 -0700
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:
M modules/client.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git 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...)