-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: go get -u golang.org/x/lint/golint
fails in module mode
#26380
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
Comments
That is intended to work as of https://golang.org/cl/122396. The fact that it doesn't is #25917, and I think this issue is a duplicate of that one. (Please reopen if it is not.) |
go get -u golang.org/x/lint/golint
fails in module mode
Another example that led me here, and which I'll leave here in case it helps somebody google or test:
|
Thanks. I'm pretty sure this is another symptom of the root cause described in #26602 (comment). |
Seen in #modules, and possibly related to this issue:
go 11 beta 3 CC @myitcv |
@thepudds as discussed on Slack, that scenario is also a symptom of #26602 (comment); just confirmed that it's fixed by https://go-review.googlesource.com/c/go/+/128136 |
Yep, I think at this point we can be pretty confident this is a dup of #26602. |
When I first saw this message, I thought it complained about the fact that I didn't import
golang.org/x/lint/golint
anywhere in my code. A better error message for such cases would be something likeOr, even better, if the go tool knows the module I am trying to add, why not just add it?
The text was updated successfully, but these errors were encountered: