-
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: update for new number formats [1.14 backport] #39288
Comments
Approving for 1.14 (this issue) and 1.13 (#39287). This is a serious problem affecting valid Go code with no workaround. |
I've described the mechanics to perform this backport in full detail in #29986 (comment). For the 1.14 backport, we only need to backport CL 235100 onto release-branch.go1.14 in x/tools and re-vendor the latest x/tools release-branch.go1.14 branch. |
Change https://golang.org/cl/236161 mentions this issue: |
Closed by merging c00d67ef29d03e4dd86a6fb6a75dba1b71a5e294 to release-branch.go1.14. |
… strings %O is supported since Go 1.13. See golang.org/design/19308-number-literals for the background. Support for %O has been added by copying and adapting the %o implementation. For golang/go#39288. For golang/go#29986. Change-Id: Ic49d3cc8d9aefcc0ecbfcfe5ebf206e6f951d413 Reviewed-on: https://go-review.googlesource.com/c/tools/+/235100 Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> (cherry picked from commit 8b020ae) Reviewed-on: https://go-review.googlesource.com/c/tools/+/236161 Run-TryBot: Dmitri Shuralyov <[email protected]>
Reopening for re-vendor. |
@gopherbot, please don't fight. |
Change https://golang.org/cl/236199 mentions this issue: |
…0602230032-c00d67ef29d0 This teaches vet to recognize %O in a fmt.Printf format string. O has been supported since the 1.13 release, but vet would warn about it. Fixes #39288. For #29986. Change-Id: Ia7817ee60ae6beac32cc402c0c68afa917e4ef0f Reviewed-on: https://go-review.googlesource.com/c/go/+/236199 Run-TryBot: Dmitri Shuralyov <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
Fixed by merging e98cafa to |
@ianlancetaylor requested issue #29986 to be considered for backport to the next 1.14 minor release.
The text was updated successfully, but these errors were encountered: