mirror of https://github.com/golang/go.git
doc/next: add release note for vet on Printf(s) with non-const s
Fixes #60529 Updates #68545 Change-Id: Ica048e4861f4de22deb7f42a1d76eb3151fee986 Reviewed-on: https://go-review.googlesource.com/c/go/+/631682 Auto-Submit: Alan Donovan <adonovan@google.com> Reviewed-by: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
cff2503b5a
commit
0751f3af92
|
|
@ -28,9 +28,14 @@ tests, fuzzers, benchmarks, and examples in test packages, such as
|
||||||
malformed names, incorrect signatures, or examples that document
|
malformed names, incorrect signatures, or examples that document
|
||||||
non-existent identifiers. Some of these mistakes may cause tests not
|
non-existent identifiers. Some of these mistakes may cause tests not
|
||||||
to run.
|
to run.
|
||||||
|
|
||||||
This analyzer is among the subset of analyzers that are run by `go test`.
|
This analyzer is among the subset of analyzers that are run by `go test`.
|
||||||
|
|
||||||
|
The existing `printf` analyzer now reports a diagnostic for calls of
|
||||||
|
the form `fmt.Printf(s)`, where `s` is a non-constant format string,
|
||||||
|
with no other arguments. Such calls are nearly always a mistake
|
||||||
|
as the value of `s` may contain the `%` symbol; use `fmt.Print` instead.
|
||||||
|
See [#60529](/issue/60529).
|
||||||
|
|
||||||
### GOCACHEPROG
|
### GOCACHEPROG
|
||||||
|
|
||||||
The `cmd/go` internal binary and test caching mechanism can now be implemented
|
The `cmd/go` internal binary and test caching mechanism can now be implemented
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue