-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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/vet: printf analyzer fails with generics #70572
Labels
Milestone
Comments
cc: @matloob |
GoVeronicaGo
added
the
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
label
Nov 26, 2024
adonovan
added
the
Analysis
Issues related to static analysis (vet, x/tools/go/analysis)
label
Nov 26, 2024
Thanks for the helpful report; I agree that this is a bug. |
https://go.dev/cl/631955 fixes the bug in x/tools; but we would need to re-vendor or cherrypick it into GOROOT for cmd/vet in go1.24. |
Change https://go.dev/cl/631955 mentions this issue: |
dmitshur
added
NeedsFix
The path to resolution is known, but the work has not been done.
and removed
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
labels
Nov 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Go version
go version go1.22.3 windows/amd64
Output of
go env
in your module/workspace:What did you do?
Run this code in Go Playground (https://go.dev/play/p/Bop_vKP8EM0) or edit with
vscode
.What did you see happen?
Go vet failed on line 22 with the following log and line 22 is marked as failed in
vscode
.What did you expect to see?
Go vet failed on lines 22 and 23 with the following log and lines 22 and 23 are marked as failed in
vscode
.The text was updated successfully, but these errors were encountered: