]> Cypherpunks repositories - gostls13.git/commitdiff
doc: mention the use of replacements to resolve imports for 1.12
authorBryan C. Mills <bcmills@google.com>
Fri, 7 Dec 2018 15:14:42 +0000 (10:14 -0500)
committerBryan C. Mills <bcmills@google.com>
Fri, 7 Dec 2018 16:31:30 +0000 (16:31 +0000)
Updates #26241

Change-Id: I8ffac13d9cc1ee4d4de8fcd2042a7fa60fca567b
Reviewed-on: https://go-review.googlesource.com/c/153157
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go1.12.html

index 291c19ace2517b66f27716cc1435ec5ff7851386..4c2765021f5cd513a0485fad5bd82528df3c6259 100644 (file)
@@ -138,6 +138,17 @@ Go 1.13 will require macOS 10.11 El Capitan or later.
   that build fails.
 </p>
 
+<p><!-- CL 152739 -->
+  When an import cannot be resolved using the active modules,
+  the <code>go</code> command will now try to use the modules mentioned in the
+  main module's <code>replace</code> directives before consulting the module
+  cache and the usual network sources.
+  If a matching replacement is found but the <code>replace</code> directive does
+  not specify a version, the <code>go</code> command uses a pseudo-version
+  derived from the zero <code>time.Time</code> (such
+  as <code>v0.0.0-00010101000000-000000000000</code>).
+</p>
+
 <h3 id="compiler">Compiler toolchain</h3>
 
 <p><!-- CL 134155, 134156 -->