-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
x/net/trace: cannot find module for path golang.org/x/net/trace #29014
Comments
Duplicate of #28652. Please use a Thanks. |
Why close this issue? And #28652 seem also not resolved. I try add replace golang.org/x/net/trace v0.0.0-20181129055619-fae4c4e3ad76 => github.com/golang/net/trace v0.0.0-20181129055619-fae4c4e3ad76 //indirect also not work. Let me restate issue again:
Any better and easy way? Or else, I have to abandon mod way and go back to traditional way again. |
I closed this because it is the duplicate of #28652. Closing this does not mean that the issue is fixed. It just means that the issue is being tracked somewhere else. You have rightly commented on your pain points on that issue. We will be tracking those in that thread. Thanks. |
I try below, and finally work! If I try "go build -x -v", it will be failed with below message: It means every build actually it try fetch from online again for x/net. Why? thanks. |
A quick way: Then the build speed still fast!!! |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go run main.go
What did you expect to see?
Run successfully. The issue may be caused be China not able download golang.org/x/net through normal go get. So I try git clone it from github.com/golang/net and put in my pkg/cache/download folder, but still not work.
In normal none mod enviroment, usually we resolve this kind of issue by my above methodology.
Any tip to resolve this issue if the mod auto get not work? Aka, any manual tip?
What did you see instead?
build github.com/ScottHuangZL/blockchain: cannot find module for path golang.org/x/net/trace
The text was updated successfully, but these errors were encountered: