Skip to content

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

@ScottHuangZL

Description

@ScottHuangZL

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

go version go1.11.2 windows/amd64

Does this issue reproduce with the latest release?

Yes

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 GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=c:\personal\golang\scott_huang
set GOPROXY=
set GORACE=
set GOROOT=C:\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=c:\personal\GoLang\projects\blockchain\go.mod
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-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 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions