New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: 'go build ./...' in module mode outside of a module traverses the filesystem instead of failing fast #37521
Comments
Heh, that's odd. I can reproduce it as well, both with |
I'm also seeing a very slow |
You are right. Thanks. |
Unfortunately |
Here is an example where a using a
|
That |
Change https://golang.org/cl/221544 mentions this issue: |
But the first path element has a dot, so it can not be a standard library package. |
That's true. At any rate, it is clearly not the same issue as the unnecessary filesystem walk for |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
It also reproduces with
go1.13
but not withgo1.12
.What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
By accident I typed
go build ./...
from inside my home directory, and I notice that it took a lot of time, spinning my hard disk.Called again, with warm cache:
This only happens from inside my home directory, where there is a
.git/config
file.Also,
go build
traverse the filesystem the entire filesystem only when the./...
pattern is specified.(with no cached data in the kernel).
The text was updated successfully, but these errors were encountered: