Skip to content

Commit 495a287

Browse files
author
Jay Conrod
committed
doc/go1.15: add notes for GOMODCACHE, modcacheunzipinplace
For #36568 For #34527 Change-Id: Ieea4b4a7644e9c957f48d08d2e172e39b571502f Reviewed-on: https://go-review.googlesource.com/c/go/+/230537 Reviewed-by: Michael Matloob <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]>
1 parent 863424b commit 495a287

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

doc/go1.15.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,26 @@ <h4 id="go-flag-parsing">Flag parsing</h4>
7878
directory of each individual test).
7979
</p>
8080

81+
<h4 id="module-cache">Module cache</h4>
82+
83+
<p><!-- https://golang.org/cl/219538 -->
84+
The location of the module cache may now be set with
85+
the <code>GOMODCACHE</code> environment variable. The default value of
86+
<code>GOMODCACHE</code> is <code>GOPATH[0]/pkg/mod</code>, the location of the
87+
module cache before this change.
88+
</p>
89+
90+
<p><!-- https://golang.org/cl/221157 -->
91+
A workaround is now available for Windows "Access is denied" errors in
92+
<code>go</code> commands that access the module cache, caused by external
93+
programs concurrently scanning the file system (see
94+
<a href="https://golang.org/issue/36568">issue #36568</a>). The workaround is
95+
not enabled by default because it is not safe to use when Go versions lower
96+
than 1.14.2 and 1.13.10 are running concurrently with the same module cache.
97+
It can be enabled by explictly setting the environment variable
98+
<code>GODEBUG=modcacheunzipinplace=1</code>.
99+
</p>
100+
81101
<h2 id="runtime">Runtime</h2>
82102

83103
<p>

0 commit comments

Comments
 (0)