]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.15: add notes for GOMODCACHE, modcacheunzipinplace
authorJay Conrod <jayconrod@google.com>
Tue, 28 Apr 2020 15:58:33 +0000 (11:58 -0400)
committerJay Conrod <jayconrod@google.com>
Tue, 28 Apr 2020 17:17:53 +0000 (17:17 +0000)
For #36568
For #34527

Change-Id: Ieea4b4a7644e9c957f48d08d2e172e39b571502f
Reviewed-on: https://go-review.googlesource.com/c/go/+/230537
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
doc/go1.15.html

index 9d10092ffa7be4d99ffd4bb803995d5c1debde3f..97479d1537c13539dc7b85d8bee3bae34fe7073f 100644 (file)
@@ -78,6 +78,26 @@ TODO
   directory of each individual test).
 </p>
 
+<h4 id="module-cache">Module cache</h4>
+
+<p><!-- https://golang.org/cl/219538 -->
+  The location of the module cache may now be set with
+  the <code>GOMODCACHE</code> environment variable. The default value of
+  <code>GOMODCACHE</code> is <code>GOPATH[0]/pkg/mod</code>, the location of the
+  module cache before this change.
+</p>
+
+<p><!-- https://golang.org/cl/221157 -->
+  A workaround is now available for Windows "Access is denied" errors in
+  <code>go</code> commands that access the module cache, caused by external
+  programs concurrently scanning the file system (see
+  <a href="https://golang.org/issue/36568">issue #36568</a>). The workaround is
+  not enabled by default because it is not safe to use when Go versions lower
+  than 1.14.2 and 1.13.10 are running concurrently with the same module cache.
+  It can be enabled by explictly setting the environment variable
+  <code>GODEBUG=modcacheunzipinplace=1</code>.
+</p>
+
 <h2 id="runtime">Runtime</h2>
 
 <p>