You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
The text was updated successfully, but these errors were encountered:
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:and I found this similar issue: #60395
but I think the default
GOPROXY
already containsdirect
, also found it in the go.env here, not clear aboutthe switching to the default GOPROXY (https://proxy.golang.org) means
.but after I removed the default direct, it indeed takes less time:
What did you see happen?
N/A
What did you expect to see?
return ASAP
The text was updated successfully, but these errors were encountered: