From: Josh Bleecher Snyder Date: Sat, 10 Sep 2016 22:21:12 +0000 (-0700) Subject: cmd/vet: ignore printf failures in cmd X-Git-Tag: go1.8beta1~1397 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f15915af4effbbe6895ae69be02d22ac016927d5;p=gostls13.git cmd/vet: ignore printf failures in cmd This is a temporary measure to work around #17057. It will be reverted when #17057 is fixed. Change-Id: I21c02f63f3530774c91065cfed5d9c566839ed9f Reviewed-on: https://go-review.googlesource.com/28959 Reviewed-by: Rob Pike --- diff --git a/src/cmd/vet/all/main.go b/src/cmd/vet/all/main.go index 7aa02a2328..8440312f53 100644 --- a/src/cmd/vet/all/main.go +++ b/src/cmd/vet/all/main.go @@ -258,6 +258,15 @@ NextLine: } } + // Temporarily ignore unrecognized printf verbs from cmd. + // The compiler now has several fancy verbs (CL 28339) + // used with types implementing fmt.Formatters, + // and I believe gri has plans to add many more. + // TODO: remove when issue 17057 is fixed. + if strings.HasPrefix(file, "cmd/") && strings.HasPrefix(msg, "unrecognized printf verb") { + continue + } + key := file + ": " + msg if w[key] == 0 { // Vet error with no match in the whitelist. Print it.