go/src/cmd/internal
Jake Bailey 2a65100e68 cmd/internal/testdir: filter out errors outside input file set
When an errorcheck test uses -m and instantiates an imported generic
function, the errors will include -m messages from the imported package
(since the new function has not previously been walked). These errors
cannot be matched since we can't write errors in files outside the test
input.

To fix this (and enable the other CLs in this stack), drop any unmatched
errors that occur in files outside those in the input set.

Change-Id: I2fcf0dd4693125d2e5823ea4437011730d8b1b1f
Reviewed-on: https://go-review.googlesource.com/c/go/+/672515
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
2025-05-20 10:15:47 -07:00
..
archive cmd/internal/archive: skip sentinel archive entries created by Go cmd 2023-08-15 15:39:57 +00:00
bio cmd/internal/bio: remove unused MustWriter 2025-02-10 08:22:10 -08:00
bootstrap_test cmd: remove support for GOROOT_FINAL 2024-02-21 22:16:54 +00:00
browser
buildid cmd/internal/buildid: skip over GNU build ID from buildid computation 2024-10-21 17:56:51 +00:00
codesign cmd: do not use notsha256 2024-09-04 18:23:49 +00:00
cov all: remove coverageredesign experiment 2025-02-03 12:10:28 -08:00
disasm cmd/internal/disasm: correct instruction length handling for riscv64 2025-01-06 23:43:06 -08:00
dwarf cmd/internal/dwarf: always use AT_ranges for scopes with DWARF 5 2025-03-13 05:16:59 -07:00
edit
gcprog
goobj cmd/compile,internal/cpu,runtime: intrinsify math/bits.OnesCount on riscv64 2025-05-01 05:57:41 -07:00
hash cmd: use cmd/internal/hash.New32 and Sum32 only 2025-02-13 12:34:30 -08:00
macho cmd/internal/macho: new package for handling mach-o files in toolchain 2024-10-21 17:56:21 +00:00
metadata internal/sysinfo: print cpu type from cpuinfo when internal cpu name is empty on Linux 2023-08-17 21:40:36 +00:00
moddeps all: use exec.Command.String in test logs 2025-03-20 09:10:13 -07:00
obj cmd/internal/obj/loong64: change the plan9 format of the prefetch instruction PRELDX 2025-05-15 22:00:16 -07:00
objabi runtime: move atoi to internal/runtime/strconv 2025-05-19 12:46:19 -07:00
objfile cmd/internal/objfile: break out dissassemblers to another package 2024-12-11 08:53:20 -08:00
osinfo cmd/internal/osinfo: stop importing golang.org/x/sys/unix 2024-10-30 18:19:19 +00:00
par cmd: relocate cmd/go/internal/par to cmd/internal/par 2024-07-29 15:37:29 +00:00
pathcache cmd: extract cmd/go's cfg.LookPath into separate pathcache package 2024-07-29 15:38:33 +00:00
pgo all: run gofmt 2025-02-03 09:55:31 -08:00
pkgpath
pkgpattern
quoted
robustio cmd: relocate cmd/go/internal/robustio to cmd/internal/robustio 2024-07-29 15:38:00 +00:00
script cmd/internal/script: fix copying directory when symlink fails 2025-05-14 10:10:33 -07:00
src all: remove unnecessary symbols and add missing symbols 2024-09-09 16:44:45 +00:00
sys cmd/compile: set unalignedOK to make memcombine work properly on loong64 2025-04-09 09:18:20 -07:00
telemetry cmd/internal: separate counter package from telemetry package 2024-06-21 19:58:04 +00:00
test2json cmd/go: print build errors during go test -json in JSON 2024-11-17 14:32:05 +00:00
testdir cmd/internal/testdir: filter out errors outside input file set 2025-05-20 10:15:47 -07:00