Skip to content

Commit b21c837

Browse files
author
Bryan C. Mills
committed
doc/go1.13: describe the change in behavior of GO111MODULE=auto
Updates #31857 Change-Id: Id0dc66246f768a2c730c67cd7a4a7830547f22a8 Reviewed-on: https://go-review.googlesource.com/c/go/+/183922 Run-TryBot: Bryan C. Mills <[email protected]> Reviewed-by: Jay Conrod <[email protected]> Reviewed-by: Katie Hockman <[email protected]>
1 parent 60f14fd commit b21c837

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/go1.13.html

+11
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,17 @@ <h3 id="modules">Modules</h3>
169169

170170
<h4 id="proxy-vars">Environment variables</h4>
171171

172+
<p><!-- CL 176580 -->
173+
The <a href="/cmd/go/#hdr-Module_support"><code>GO111MODULE</code></a>
174+
environment variable continues to default to <code>auto</code>, but
175+
the <code>auto</code> setting now activates the module-aware mode of
176+
the <code>go</code> command whenever the current working directory contains,
177+
or is below a directory containing, a <code>go.mod</code> file — even if the
178+
current directory is within <code>GOPATH/src</code>. This change simplifies
179+
the migration of existing code within <code>GOPATH/src</code> and the ongoing
180+
maintenance of module-aware packages alongside non-module-aware importers.
181+
</p>
182+
172183
<p><!-- CL 181719 -->
173184
The new
174185
<a href="/cmd/go/#hdr-Module_configuration_for_non_public_modules"><code>GOPRIVATE</code></a>

0 commit comments

Comments
 (0)