]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add a flag to avoid creating unwritable directories in the module cache
authorBryan C. Mills <bcmills@google.com>
Fri, 18 Oct 2019 20:52:12 +0000 (16:52 -0400)
committerBryan C. Mills <bcmills@google.com>
Mon, 21 Oct 2019 15:48:39 +0000 (15:48 +0000)
commit84b0e3665d9684b9957103deaa9c5984c146cdfd
tree68c1cb13d98c0b40f8dfc5dfe6fde19e92df3c9b
parentb653c878b1ad8d1b4f8d7b04201d0cb0a4156ead
cmd/go: add a flag to avoid creating unwritable directories in the module cache

This change adds the '-modcacherw' build flag, which leaves
newly-created directories (but not the files!) in the module cache
read-write instead of making them unwritable.

Fixes #31481

Change-Id: I7c21a53dd145676627c3b51096914ce797991d99
Reviewed-on: https://go-review.googlesource.com/c/go/+/202079
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
doc/go1.14.html
src/cmd/go/alldocs.go
src/cmd/go/internal/cfg/cfg.go
src/cmd/go/internal/modfetch/fetch.go
src/cmd/go/internal/work/build.go
src/cmd/go/script_test.go
src/cmd/go/testdata/script/README
src/cmd/go/testdata/script/mod_cache_rw.txt [new file with mode: 0644]