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: Problem using go modules #31435
Comments
Hello, did you execute Can you please show content of go.mod file? And if your project is under GOPATH, please try GO111MODULE=on go build |
I tried it outside the GOPATH. |
@athreya92, there is not enough information here to diagnose the problem. For example, we don't know what is importing Please provide a self-contained code example with a specific sequence of commands that we can run to reproduce the problem with 1.12.3. |
I am experiencing the same issue, but it is intermittent.
I retried go build several times, and it worked on the third attempt. |
@leighmcculloch, |
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.) |
having this problem also.
there are nil, nada, zero imports of and this is in
aside from the |
@arhyth, the diagnostics for missing imports have been improved substantially in Go 1.13. Please try your build with 1.13, and if it still seems incorrect please open a new issue with steps to reproduce. |
upgraded to 1.13.
now i only have this error
i'm not sure whether to open an issue or there's some small thing that i am just missing, as i'm fairly new to Go. |
If you want to build all of the packages within the module, use |
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?
Tried to setup go modules using the link https://github.com/golang/go/wiki/Modules
Tried the QuickStart guide to start using modules
What did you expect to see?
Build successfully and run the program
What did you see instead?
`go build
can't load package: package github.com/you/hello: unknown import path "github.com/you/hello": cannot find module providing package github.com/you/hello`
Please help
The text was updated successfully, but these errors were encountered: