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 2023-08-21 23:47:02 -07:00 committed by GitHub
parent d979831dbd
commit cdf0b3b7a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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...)