1
0
mirror of https://github.com/golang/go synced 2024-11-12 12:50:28 -07:00
go/misc/cgo/testcarchive
Bryan C. Mills ad641e8521 misc/cgo/testcarchive: don't rely on an erroneous install target in tests
Non-main packages in module mode should not be installed to
GOPATH/pkg, but due to #37015 they were installed there anyway.

This change switches the 'go install' command in TestPIE to instead
use 'go build', and switches TestInstall and TestCachedInstall
(which appear to be explicitly testing 'go install') to explicitly
request GOPATH mode (which does have a well-defined install target).

For #37015.

Change-Id: Ifb24657d2781d1e35cf40078e8e3ebf56aab9cc8
Reviewed-on: https://go-review.googlesource.com/c/go/+/416954
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2022-07-11 18:57:03 +00:00
..
testdata runtime: install sigPreempt signal handler for c-archive/c-shared 2021-11-03 00:49:50 +00:00
carchive_test.go misc/cgo/testcarchive: don't rely on an erroneous install target in tests 2022-07-11 18:57:03 +00:00
overlaydir_test.go