From f03f2ab67a686f44355d4e8b376b6da1ec0de970 Mon Sep 17 00:00:00 2001 From: Neal Patel Date: Thu, 30 Apr 2026 19:30:21 -0400 Subject: [PATCH] go/types: prevent panic with multi-tag, multi-file test packages notag.go ``` package repro ``` tag.go ``` //go:build ignore package repro ``` Change-Id: I6eb2f61f3434ac575e9081747c8da8aab24f4823 Reviewed-on: https://go-review.googlesource.com/c/go/+/772800 LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com Reviewed-by: Mark Freeman Reviewed-by: Nicholas Husin Reviewed-by: Nicholas Husin Auto-Submit: Neal Patel --- src/go/types/check_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/go/types/check_test.go b/src/go/types/check_test.go index a5008e54ba..142d221502 100644 --- a/src/go/types/check_test.go +++ b/src/go/types/check_test.go @@ -480,7 +480,7 @@ func testPkg(t *testing.T, filenames []string, manual bool) { if len(fs) == 0 { t.Skip("all files skipped by build tags") } - testFiles(t, filenames, srcs, manual) + testFiles(t, fs, srcs, manual) } // shouldTest checks build tags in src and returns whether the file