Skip to content
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 list -m all stuck #66463

huanghy6268 opened this issue Mar 22, 2024 · 1 comment

cmd/go: go list -m all stuck #66463

huanghy6268 opened this issue Mar 22, 2024 · 1 comment


Copy link

Go version

go version go1.20.7 linux/amd64

Output of go env in your module/workspace:


What did you do?

when I run go list -m all to detect version of a certain lib, it hangs for more than 5 minutes:

root:/work/project# go env | grep GOPROXY
root:/work/project# time go list -m all
real	5m39.997s
user	1m39.085s

and I found this similar issue: #60395

but I think the default GOPROXY already contains direct, also found it in the go.env here, not clear about the switching to the default GOPROXY ( means.

but after I removed the default direct, it indeed takes less time:

root:/work/project# go env -w GOPROXY=""
root:/work/project# go clean -modcache
root:/work/project# time go list -m all
real	0m30.754s
user	0m9.484s
sys	0m7.601s

What did you see happen?


What did you expect to see?

return ASAP

Copy link

git or other operations are inherently slow.
this is just #60395

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

2 participants