]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
modules: Make new cache directories read/write
authorJoe Mooring <joe@mooring.com>
Tue, 22 Aug 2023 06:47:02 +0000 (23:47 -0700)
committerGitHub <noreply@github.com>
Tue, 22 Aug 2023 06:47:02 +0000 (08:47 +0200)
Leave newly-created directories in the module cache read-write instead
of making them read-only.

Closes #11369

modules/client.go

index 53ce67cb326877384d092fd50e438da2da34c278..7108c9befde2d8284b59de122b5ec5cb6d78de7f 100644 (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...)