Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
set CGO_CFLAGS=-g -O2
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\SCOTT_~1\AppData\Local\Temp\go-build431748462=/tmp/go-build -gno-record-gcc-switches
What 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:
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:
I am plan import "github.com/dgraph-io/badger"
It indirect require golang.org/x/net/trace
I know need try use replace methodology to resolve this kind of issue
But still not work with below pain points:
a. I have to try find out the version. Can we let it blank or use * to mean match any version?
b. Even I try go to github to capture your latest commit and put in mod file, it still not work.
c. I try git clone github.com/golang/net and put in cache folder, also useless.
Any better and easy way? Or else, I have to abandon mod way and go back to traditional way again.
I try below, and finally work! go mod edit -firstname.lastname@example.org
go mod edit -email@example.com=github.com/golang/net@latest But the "go build" take a long time to complete build. ==> I have concern for the long build time even it finally success complete, how to resolve it?? Thanks.
If I try "go build -x -v", it will be failed with below message:
https fetch failed: Get https://golang.org/x/net?go-get=1: dial tcp 184.108.40.206:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
It means every build actually it try fetch from online again for x/net. Why? thanks.