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

Closed
huanghy6268 opened this issue Mar 22, 2024 · 1 comment
Closed

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

huanghy6268 opened this issue Mar 22, 2024 · 1 comment

Comments

@huanghy6268
Copy link

Go version

go version go1.20.7 linux/amd64

Output of go env in your module/workspace:

GOPROXY="https://proxy.golang.org,direct"

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
GOPROXY='https://proxy.golang.org,direct'
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 (https://proxy.golang.org) means.

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

root:/work/project# go env -w GOPROXY="https://proxy.golang.org"
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?

N/A

What did you expect to see?

return ASAP

@seankhliao
Copy link
Member

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants