aboutsummaryrefslogtreecommitdiff
path: root/src/bytes/bytes.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2021-08-03 15:49:01 -0700
committerJosh Bleecher Snyder <josharian@gmail.com>2021-10-06 21:06:48 +0000
commit197b32817b8619d18cd648a7ab487e933c7150df (patch)
tree2cda7d503088bb0245d718df9bc9bc97da050066 /src/bytes/bytes.go
parent4a37a1d49fd472665b59b581fe6563a9e578fd71 (diff)
downloadgo-197b32817b8619d18cd648a7ab487e933c7150df.tar.xz
go/build: ignore package main files in TestDependencies
The tree has package main files scattered around in it for the purposes of running go generate. They're all marked "// +build ignore", which gets special handling in TestDependencies. It would be nice to be able to use other build tags, such as "generate", as suggested by the go generate design doc. Plus the build tag syntax is changing. This change skips all "package main" files. By definition these aren't importable, so they can't contribute to the dependency tree. We can't quite eliminate the "// +build ignore" check, as it is used by packages runtime and syscall. But it's still a step in the right direction. Change-Id: Ib9449acfdba75f570b87a4200afe944910d76222 Reviewed-on: https://go-review.googlesource.com/c/go/+/339592 Trust: Josh Bleecher Snyder <josharian@gmail.com> Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/bytes/bytes.go')
0 files changed, 0 insertions, 0 deletions