mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00: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