]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: reference BuildID field from list's -export docs
authorDaniel Martí <mvdan@mvdan.cc>
Sat, 12 Mar 2022 22:59:44 +0000 (22:59 +0000)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 19 May 2022 20:54:47 +0000 (20:54 +0000)
In https://golang.org/cl/263542 we added BuildID to the Package struct
in the docs for "go list", correctly pointing out that it's only set
when -export is used.

Further down, the doc details the -export flag on its own.
It already mentioned the Export field, and we forgot to add a mention to
BuildID as well. Do that.

Change-Id: I5838a8900edae8012fe333937d86baea3066c5f1
Reviewed-on: https://go-review.googlesource.com/c/go/+/392114
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>

src/cmd/go/alldocs.go
src/cmd/go/internal/list/list.go

index 15a6ff623ddc6e56e112897624f383f972971d63..d770ad82e555cb8ea8b74818a20c1fa6227f5d82 100644 (file)
 // (zeroed).
 //
 // The -export flag causes list to set the Export field to the name of a
-// file containing up-to-date export information for the given package.
+// file containing up-to-date export information for the given package,
+// and the BuildID field to the build ID of the compiled package.
 //
 // The -find flag causes list to identify the named packages but not
 // resolve their dependencies: the Imports and Deps lists will be empty.
index 4d7c727048c76b72546468bd308ebfba91538a9a..770127c1cd320404776ee1fd9e2307aad3552675 100644 (file)
@@ -187,7 +187,8 @@ a non-nil Error field; other information may or may not be missing
 (zeroed).
 
 The -export flag causes list to set the Export field to the name of a
-file containing up-to-date export information for the given package.
+file containing up-to-date export information for the given package,
+and the BuildID field to the build ID of the compiled package.
 
 The -find flag causes list to identify the named packages but not
 resolve their dependencies: the Imports and Deps lists will be empty.