mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-12 20:13:59 +02:00
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:
@@ -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...)
|
||||
|
Reference in New Issue
Block a user