From: Russ Cox Date: Sat, 24 Jun 2023 15:00:37 +0000 (-0400) Subject: cmd/go: enable slog vet check during 'go test' X-Git-Tag: go1.21rc3~2^2~47 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a3093eca64f9efc830c153c835291d751ea167f9;p=gostls13.git cmd/go: enable slog vet check during 'go test' The slog check is new and no existing code uses slog (it's new too), so there are no concerns about false positives in existing code. Enable it by default. Change-Id: I4fc1480eeb5a3acc9e5e095e9d5428f5ce04b121 Reviewed-on: https://go-review.googlesource.com/c/go/+/505915 Run-TryBot: Bryan Mills Reviewed-by: Jonathan Amsterdam Reviewed-by: Bryan Mills TryBot-Result: Gopher Robot --- diff --git a/src/cmd/go/internal/test/test.go b/src/cmd/go/internal/test/test.go index 995da15c90..7df6f421d6 100644 --- a/src/cmd/go/internal/test/test.go +++ b/src/cmd/go/internal/test/test.go @@ -660,6 +660,7 @@ var defaultVetFlags = []string{ "-printf", // "-rangeloops", // "-shift", + "-slog", "-stringintconv", // "-structtags", // "-tests",