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: clarify "does not contain package" error? #39593
Comments
Please post the actual program that reproduces the problem. This one does not — the
From the error message you are reporting, I suspect that your actual program includes the line import (
"golang.org/x/sys"
) which provokes |
Ah I see, the error message isn't very clear about this. It just says "does not contain package XYZ", not "There are no go files at this level". |
I'm not sure how we could make this clearer without also making it too verbose, but if you have a specific suggestion we could consider it. |
Maybe keep the current error msg, plus append "No go files found. Are you sure you have the correct import path?" |
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?
main.go:
go.mod:
go build
What did you expect to see?
I expected it to download that version of sys.
What did you see instead?
I wanted version
20190204203706-41f3e6584952
but it's attempting to download20200610111108-226ff32320da
instead, and also failing for some reason.The text was updated successfully, but these errors were encountered: