]> Cypherpunks repositories - gostls13.git/commit
go/build: in TestImportDirTarget, only expect an install target when cgo is enabled
authorBryan C. Mills <bcmills@google.com>
Thu, 10 Nov 2022 14:44:39 +0000 (09:44 -0500)
committerGopher Robot <gobot@golang.org>
Thu, 10 Nov 2022 17:06:47 +0000 (17:06 +0000)
commitb820fb8df11e5ab4068b4ed9522a96bf52cf8b4d
tree9b478c98f172b5f541d87b7dcf3deb688af0ea97
parentd33043d37dc8cc5d691ff590ebcd2fd42e356a66
go/build: in TestImportDirTarget, only expect an install target when cgo is enabled

As of CL 448803, packages in GOROOT only have install targets when
they have cgo source files. When cgo is not enabled, that condition
is necessarily false, and no install target will exist.

For #47257.

Change-Id: I653a9c5f89d18a5841810f3de8d490bd7cb7e922
Reviewed-on: https://go-review.googlesource.com/c/go/+/449375
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
src/go/build/build_test.go