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

x/net/trace: cannot find module for path #29014

ScottHuangZL opened this issue Nov 30, 2018 · 5 comments

x/net/trace: cannot find module for path #29014

ScottHuangZL opened this issue Nov 30, 2018 · 5 comments


Copy link

What version of Go are you using (go version)?

go version go1.11.2 windows/amd64

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 GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\scott_huang\AppData\Local\go-build
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=c:\personal\golang\scott_huang
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set GOMOD=c:\personal\GoLang\projects\blockchain\go.mod
set CGO_CFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
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 through normal go get. So I try git clone it from 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 cannot find module for path

@gopherbot gopherbot added this to the Unreleased milestone Nov 30, 2018
Copy link

Duplicate of #28652. Please use a replace statement or other solutions which are pointed in that thread.


Copy link

Why close this issue? And #28652 seem also not resolved.

I try add replace v0.0.0-20181129055619-fae4c4e3ad76 => v0.0.0-20181129055619-fae4c4e3ad76 //indirect

also not work.

Let me restate issue again:

  1. I am plan import ""
  2. It indirect require
  3. I know need try use replace methodology to resolve this kind of issue
  4. 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 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.

Copy link

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.


Copy link

I try below, and finally work!
go mod edit
go mod edit

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 dial tcp 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.

Copy link

A quick way:
go mod tidy
go mod vendor
go build -mod=vendor

Then the build speed still fast!!!

@golang golang locked and limited conversation to collaborators Dec 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet

No branches or pull requests

3 participants