go/src/cmd/nm
Bryan C. Mills b8bf820d5d cmd/nm: 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 testGoLib to instead
use 'go build -buildmode=archive' with an explicit output file.

For #37015.

Change-Id: I15781aa33d1b2adc6a4437a58622276f4e20b889
Reviewed-on: https://go-review.googlesource.com/c/go/+/416955
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
2022-07-11 19:01:02 +00:00
..
doc.go all: gofmt main repo 2022-04-11 16:34:30 +00:00
nm.go
nm_cgo_test.go cmd/nm, cmd/objdump, cmd/pprof: disassembly is not supported on loong64 2022-05-17 18:19:34 +00:00
nm_test.go cmd/nm: don't rely on an erroneous install target in tests 2022-07-11 19:01:02 +00:00