Skip to content

Commit

Permalink
doc: mention the use of replacements to resolve imports for 1.12
Browse files Browse the repository at this point in the history
Updates #26241

Change-Id: I8ffac13d9cc1ee4d4de8fcd2042a7fa60fca567b
Reviewed-on: https://go-review.googlesource.com/c/153157
Reviewed-by: Ian Lance Taylor <[email protected]>
  • Loading branch information
Bryan C. Mills committed Dec 7, 2018
1 parent 6129e33 commit f604b6c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/go1.12.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,17 @@ <h3 id="modules">Modules</h3>
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 -->
Expand Down

0 comments on commit f604b6c

Please sign in to comment.