]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.18: discuss embedded build info compatibility
authorHana <hyangah@gmail.com>
Wed, 15 Dec 2021 13:40:30 +0000 (08:40 -0500)
committerHyang-Ah Hana Kim <hyangah@gmail.com>
Wed, 15 Dec 2021 14:48:19 +0000 (14:48 +0000)
Fixes #50085

Change-Id: I9be8ddb983fb4fe598becbb0b93bb5b7e1f8438f
Reviewed-on: https://go-review.googlesource.com/c/go/+/372214
Trust: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
doc/go1.18.html

index 9cb3cae20d9a85b0481d3ff8953776b72a64a12f..2ec5fae8c782f155d85cf89c33bad1f0366ea058 100644 (file)
@@ -250,6 +250,15 @@ Do not send CLs removing the interior tags from such phrases.
   package.
 </p>
 
+<p><!-- CL 369977 -->
+  The underlying data format of the embedded build information can change with
+  new go releases, so an older version of <code>go</code> may not handle the
+  build information produced with a newer version of <code>go</code>.
+  To read the version information from a binary built with <code>go</code> 1.18,
+  use the <code>go</code> <code>version</code> command and the
+  <code>debug/buildinfo</code> package from <code>go</code> 1.18+.
+</p>
+
 <p><!-- https://golang.org/issue/44435 -->
   If the main module's <code>go.mod</code> file
   specifies <a href="/ref/mod#go-mod-file-go"><code>go</code> <code>1.17</code></a>