]> Cypherpunks repositories - gostls13.git/commit
go/build: ignore files by extension before matching on name
authorIan Lance Taylor <iant@golang.org>
Sat, 29 Oct 2022 00:23:58 +0000 (17:23 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 1 Nov 2022 19:48:43 +0000 (19:48 +0000)
commit49bbece44c93b4de62ff360268c420e45f27ad63
treef8d28c13e122649af05deb7b4b209f730a3d84e9
parent6a44a3aa9f250cbe0b329b60eeb555c7dde83f10
go/build: ignore files by extension before matching on name

Otherwise given a file like defs_nacl_amd64p32.go.~1~ we will add
"nacl" and "amd64p32" to AllTags. This was causing the
cmd/go/internal/modindex tests to fail on my system, since I had
an old editor backup file lying around.

Change-Id: Ib1c5d835e4871addae6dc78cee07c9839bb880e2
Reviewed-on: https://go-review.googlesource.com/c/go/+/446395
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
src/go/build/build.go
src/go/build/build_test.go
src/go/build/testdata/non_source_tags/non_source_tags.go [new file with mode: 0644]
src/go/build/testdata/non_source_tags/x_arm.go.ignore [new file with mode: 0644]