From: Bryan C. Mills
Date: Fri, 7 Dec 2018 15:14:42 +0000 (-0500)
Subject: doc: mention the use of replacements to resolve imports for 1.12
X-Git-Tag: go1.12beta1~137
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f604b6ce3877bf7d612c3aaaa429a304bd2fa383;p=gostls13.git
doc: mention the use of replacements to resolve imports for 1.12
Updates #26241
Change-Id: I8ffac13d9cc1ee4d4de8fcd2042a7fa60fca567b
Reviewed-on: https://go-review.googlesource.com/c/153157
Reviewed-by: Ian Lance Taylor
---
diff --git a/doc/go1.12.html b/doc/go1.12.html
index 291c19ace2..4c2765021f 100644
--- a/doc/go1.12.html
+++ b/doc/go1.12.html
@@ -138,6 +138,17 @@ Go 1.13 will require macOS 10.11 El Capitan or later.
that build fails.
+
+ When an import cannot be resolved using the active modules,
+ the go
command will now try to use the modules mentioned in the
+ main module's replace
directives before consulting the module
+ cache and the usual network sources.
+ If a matching replacement is found but the replace
directive does
+ not specify a version, the go
command uses a pseudo-version
+ derived from the zero time.Time
(such
+ as v0.0.0-00010101000000-000000000000
).
+
+
Compiler toolchain