Commit af3811dd36 for golang
commit af3811dd36f6bea436b0679519696d954d148bf2
Author: Alan Donovan <adonovan@google.com>
Date: Thu Dec 3 11:28:10 2026 -0500
go/types/exportdata: skip on noopt builder
The GC_GOFLAGS on this builder cause the go command not to
run even on platforms like linux/amd64. Add an explicit
needsGoTool check.
Change-Id: I963b3a9a52d7df3c5e6574323b88b90c5f240619
Reviewed-on: https://go-review.googlesource.com/c/go/+/869841
Reviewed-by: t hepudds <thepudds1460@gmail.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: PJ Malloy <pjmalloy@google.com>
diff --git a/src/go/types/exportdata/typeparam_test.go b/src/go/types/exportdata/typeparam_test.go
index 8ab0d0ea5b..10d8ddf0eb 100644
--- a/src/go/types/exportdata/typeparam_test.go
+++ b/src/go/types/exportdata/typeparam_test.go
@@ -29,6 +29,7 @@ import (
// $GOROOT/test/typeparam through Encode and Decode, and compares the
// result with the package type-checked from source.
func TestRoundTripTypeparamTests(t *testing.T) {
+ needsGoTool(t) // for go list
needsGOROOTDir(t, "test")
// Check go files in test/typeparam.