]> Cypherpunks repositories - gostls13.git/commit
cmd/go: don't report non-go files in CompiledGoFiles
authorMichael Matloob <matloob@golang.org>
Fri, 18 Nov 2022 19:54:14 +0000 (14:54 -0500)
committerMichael Matloob <matloob@golang.org>
Fri, 18 Nov 2022 21:12:24 +0000 (21:12 +0000)
commitdccc58e1b9d3fbc88c6a86c02f77ed0f26d07a4a
treec0bd3d707c4986817946b7c3b5d36a5e6c0ea6a5
parent7161fc737dab823f94d77810953493a0f458284f
cmd/go: don't report non-go files in CompiledGoFiles

We save non-go files in the cached srcfiles file because we want the
non-go files for vet, but we shouldn't report them in CompiledGoFiles.
Filter them out before adding them to CompiledGoFiles.

Fixes #28749

Change-Id: I889d4bbf8c4ec1348584a62ef5e4f8b3f05e97da
Reviewed-on: https://go-review.googlesource.com/c/go/+/451285
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/work/exec.go
src/cmd/go/testdata/script/list_compiled_files_issue28749.txt [new file with mode: 0644]