From: Ian Lance Taylor Date: Mon, 30 Jan 2023 23:09:21 +0000 (-0800) Subject: cmd/dist: test goos, not gohostos, in tester.extLink X-Git-Tag: go1.21rc1~1716 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=00e1091bfde531ae25cb411f9ac9a9e2d04b2592;p=gostls13.git cmd/dist: test goos, not gohostos, in tester.extLink This error dates back to when the method was introduced in CL 6531. It only matters for the rare case of building tests on one GOOS and running them on another, and only makes a difference for the rare case where one GOOS supports external linking and another does not. Change-Id: I1a7abfb0a5bbec49ddbcd9c1a4f5c0ec43a8095c Reviewed-on: https://go-review.googlesource.com/c/go/+/463991 Reviewed-by: Michael Knyszek TryBot-Result: Gopher Robot Reviewed-by: Bryan Mills Run-TryBot: Ian Lance Taylor Auto-Submit: Ian Lance Taylor --- diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index 189cfd0590..10bca33c68 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -1087,7 +1087,7 @@ func (t *tester) out(v string) { } func (t *tester) extLink() bool { - pair := gohostos + "-" + goarch + pair := goos + "-" + goarch switch pair { case "aix-ppc64", "android-arm", "android-arm64",