-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: go get
should give a clearer error with GO111MODULE=off
#66080
Comments
As of Go 1.22, “ So the difference in errors here is correct, but perhaps in the |
go get
should give a clearer error with GO111MODULE=off
Thanks. I now think that the general error should be improved to say something like |
(@samthanawalla, want to take a look at this one?) |
Change https://go.dev/cl/574595 mentions this issue: |
I think to enable these more refined error messages, we need to work towards #40775 |
Thank you for your reply. I will try to research the ##40775 |
@cuishuang We're thinking about how best to address this. Please hold off on making further changes for now. |
Ok. Thanks |
Issue seems solved by #43684
|
Both Go 1.23.3 and Go tip (commit c4e6ab9) have same behavior as in the original issue report. @seankhliao It doesn't seem that this is complete. |
ack, I didn't read through all the comments |
Go version
6f5d774
Output of
go env
in your module/workspace:What did you do?
What did you see happen?
See above.
What did you expect to see?
I expect to see a similar error message whether
GO111MODULES
is specified or not. The setting of that environment variable seems irrelevant for whether the Go package exists.The text was updated successfully, but these errors were encountered: