-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
cmd/go: build errors with "cannot find module for path golang.org/x/net/context" #28064
Comments
Have you tried Go 1.11.1? |
Also, the Go project does not use its bug tracker for general discussion or asking questions. There are more people available to help with questions on slack/mailing lists. Thanks! |
@mvdan I use Go 1.11.1 with vgo, build project has the error : build XXXXXXX/main: cannot find module for path golang.org/x/net/context |
when i use low version Go, not has the erroe |
i think it is because of vgo bug of find package at Go 1,11,1 |
@zjmnssy, @1486327116, I'm not able to reproduce this issue on Note that the
|
Please also provide the Git version in use (#26746). |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
Please answer these questions before submitting your issue. Thanks!
My English is pool, i am sorry.
What version of Go are you using (
go version
)?go 1.11
Does this issue reproduce with the latest release?
i do not know, i am a beginner of go, this is happened when i use etcd clientv3 (go get github.com/coreos/etcd/[email protected])
,and i remember that when i run go get github.com/coreos/etcd/[email protected], the terminal tell me some dir is no go files,but i ignored these,
What operating system and processor architecture are you using (
go env
)?win10
go env:
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Administrator\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\Administrator\go
set GOPROXY=
set GORACE=
set GOROOT=E:\toolsForDev\go1.11
set GOTMPDIR=
set GOTOOLDIR=E:\toolsForDev\go1.11\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=E:\go_pro\logagent\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\ADMINI~1\AppData\Local\Temp\go-build894792506=/tmp/go
-build -gno-record-gcc-switches
What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
package main
import (
"fmt"
"github.com/coreos/etcd/clientv3"
"time"
)
func main() {
test02()
}
func test02() {
client, _ := clientv3.New(clientv3.Config{Endpoints: []string{"192.168.208.128:2789"},DialTimeout:time.Second*3})
fmt.Println(*client)
}
What did you expect to see?
i just want to fixed the err about cannot find module for path golang.org/x/net/context
What did you see instead?
The text was updated successfully, but these errors were encountered: