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
This commit is contained in:
Joe Mooring authored and GitHub committed 2023-08-22 08:47:02 +02:00
1 parent d979831dbd
commit cdf0b3b7a6
1 file changed
+1 -1
+1 -1
View File
@@ -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...)