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: error message refers to "." instead of the path provided on the command line #31031
Comments
Please complete the issue template. In particular, we need the |
CC @jayconrod |
Reproduced in both modes in Go 1.12.4. However, the error message is different at tip.
I think the GOPATH message is fine, but the module error message could be improved. |
It's actually even worse now. 😞
|
Change https://golang.org/cl/189157 mentions this issue: |
What version of Go are you using (
go version
)?go version go1.12 linux/amd64
What operating system and processor architecture are you using (
go env
)?linux
What did you do?
go build cmd/gopls
and it says
can't load package: package cmd/gopls: cannot find package "." in:
/usr/lib/google-golang/src/cmd/gopls
Note that . is not mentioned anywhere in the command, nor is there an "import ." anywhere either.
Of course,
go build ./cmd/gopls works,
but the other error message is not helpful.
The text was updated successfully, but these errors were encountered: