]> Cypherpunks repositories - gostls13.git/commit
go/build: omit PkgObj for packages "unsafe" and "builtin"
authorBryan C. Mills <bcmills@google.com>
Thu, 10 Nov 2022 15:03:21 +0000 (10:03 -0500)
committerGopher Robot <gobot@golang.org>
Thu, 10 Nov 2022 17:18:08 +0000 (17:18 +0000)
commit05cc8b5369b4c3571f0fb2aeed67f9229301b382
tree22c244de9dccc12c2f32a5ac56f1249f5e0bd703
parentb820fb8df11e5ab4068b4ed9522a96bf52cf8b4d
go/build: omit PkgObj for packages "unsafe" and "builtin"

Package "builtin" is not a real, importable package; it exists only
for documentation. Package "unsafe" is not compiled into an object
file from its source code; instead, imports of "unsafe" are handled
specially by the compiler.

(In Go 1.19.3, package "unsafe" did not have an install target, while
package "builtin" did but that target was never written.)

Fixes #56687.
Updates #47257.

Change-Id: I1d1e90ff9e1629b80e0df93e1f7e17242c8dab69
Reviewed-on: https://go-review.googlesource.com/c/go/+/449376
Reviewed-by: Michael Matloob <matloob@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/go/internal/modindex/read.go
src/cmd/go/testdata/script/install_goroot_targets.txt
src/go/build/build.go