diff options
| author | Michael Matloob <matloob@golang.org> | 2024-02-05 12:20:45 -0500 |
|---|---|---|
| committer | Michael Matloob <matloob@golang.org> | 2024-02-08 18:16:28 +0000 |
| commit | 4e91c5697a77d9f83a34cbd32704254a9b1bde9f (patch) | |
| tree | 8b888502c691ec59d5bbbe927003acec529b6843 /src/encoding/xml/xml_test.go | |
| parent | 151362cf7c94bab5baa33af47249c850fbb941b0 (diff) | |
| download | go-4e91c5697a77d9f83a34cbd32704254a9b1bde9f.tar.xz | |
internal/goroot: in IsStandardPackage check for go source files
Be more strict in IsStandardPackage: before this change we'd just
check for the existence of the directory, but now we check to see that
there's at least one .go file in the directory.
Also update some comments in the modindex package to reflect the fact
that an IndexPackage might represent a directory that does not contain
any source files.
Fixes #65406
Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest,gotip-windows-amd64-longtest
Change-Id: I82f0c0e7bfcd5bb4df0195c4c8c7fc7c67fae53e
Reviewed-on: https://go-review.googlesource.com/c/go/+/561338
Reviewed-by: Bryan Mills <bcmills@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/encoding/xml/xml_test.go')
0 files changed, 0 insertions, 0 deletions
