Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/cmd/godoc: ignored "too many open files" errors can cause incomplete /pkg/ subdirectories listings #14252
What version of Go are you using (go version)?
What operating system and processor architecture are you using?
OS X 10.11.3 (64-bit).
What did you do?
What did you expect to see?
A complete list of subdirectories, with their package synopses.
What did you see instead?
Randomly incomplete listing of subdirectories, and some missing package synopses.
I've looked into why it happens. At first I thought it might be some race condition, but I've learned it's not.
Instead, the problem is here:
Because all GOROOT and GOPATH workspaces are walked in parallel (likely with some concurrency limits), it may run into "too many files open" limits and erroring out. The linked code segment ignores all situations where parsing the .go files results in errors (there's no
I've added a simple