-
Notifications
You must be signed in to change notification settings - Fork 18k
all: vet context failures #16230
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
Only the first looks real. We should fix The http ones are bogus. |
The HTTP ones are due to a bug in the vet check: a "naked" return should count as a reference to the named result variables. |
@adonovan do you think you can fix the vet check by the end of the week? |
Yes. |
CL https://golang.org/cl/24681 mentions this issue. |
(Not fixed yet --- https://go-review.googlesource.com/c/24681/ still pending.) |
This doesn't look entirely fixed. At 54b499e, running
|
Okay, those two are valid. Sent https://go-review.googlesource.com/24850 I disagree with these two:
Both of those are intentional. For the first, I think cmd/vet should ignore that rule on internal packages. And for the second, I think we need to define in the fmt package what %p means on interfaces. |
I have a CL pending for 1.8 that changes transfer.go. It's a tiny change that's not obviously better or worse, and I'm unconvinced that changing vet is the right answer. But let's discuss that on the CL or during 1.8. The only thing that matters for 1.7 is the context stuff. |
CL https://golang.org/cl/24850 mentions this issue. |
Updates #16230 Change-Id: Ie38f85419c41c00108f8843960280428a39789b5 Reviewed-on: https://go-review.googlesource.com/24850 Run-TryBot: Brad Fitzpatrick <[email protected]> Reviewed-by: Josh Bleecher Snyder <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
We can close this. The context-related failures were fixed by CL 24850. I'll deal with anything else in 1.8 as part of getting vet running during all.bash. |
The cmd/vet context check and the context package/methods were all added in 1.7. There are numerous complaints from vet about the stdlib. For most of them, we should probably either fix the stdlib or the vet check before release. This issue is to investigate them.
cc @bradfitz @alandonovan
The text was updated successfully, but these errors were encountered: