Commit 03a9f5a1 authored by Ian Lance Taylor's avatar Ian Lance Taylor

doc: go1.12: update notes on go directive

Fixes #30043

Change-Id: I4ecfff7d8a9432240c1927f7484786fe1182b773
Reviewed-on: https://go-review.googlesource.com/c/160797Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 6f4dc1cc
...@@ -181,10 +181,10 @@ tour ...@@ -181,10 +181,10 @@ tour
<p><!-- CL 147282, 147281 --> <p><!-- CL 147282, 147281 -->
The <code>go</code> directive in a <code>go.mod</code> file now indicates the The <code>go</code> directive in a <code>go.mod</code> file now indicates the
version of the language used by the files within that module, and version of the language used by the files within that module.
<code>go</code> <code>mod</code> <code>tidy</code> sets it to the It will be set to the current release
current release (<code>go</code> <code>1.12</code>) if no existing (<code>go</code> <code>1.12</code>) if no existing version is
version is present. present.
If the <code>go</code> directive for a module specifies a If the <code>go</code> directive for a module specifies a
version <em>newer</em> than the toolchain in use, the <code>go</code> command version <em>newer</em> than the toolchain in use, the <code>go</code> command
will attempt to build the packages regardless, and will note the mismatch only if will attempt to build the packages regardless, and will note the mismatch only if
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment