From 68ddbc67f1e832750b7e5f1f56ab84cd8763e243 Mon Sep 17 00:00:00 2001 From: Marco Paganini Date: Sun, 18 Feb 2018 10:59:29 -0800 Subject: [PATCH] Fix govet output parsing for go >= 1.10. - Changed errorformat of go vet to include go build style messages in the parsing of go vet invocations. - With go 1.10, govet apparently now runs a "go build" to collect information about the entire project. As a result, go vet will now output both go build and go vet errors. Previously, only go vet specific errors were reported. --- syntax_checkers/go/govet.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/syntax_checkers/go/govet.vim b/syntax_checkers/go/govet.vim index 1d8015c5..b7690f98 100644 --- a/syntax_checkers/go/govet.vim +++ b/syntax_checkers/go/govet.vim @@ -24,6 +24,7 @@ function! SyntaxCheckers_go_govet_GetLocList() dict let errorformat = \ '%Evet: %.%\+: %f:%l:%c: %m,' . + \ '%f:%l:%c: %m,' . \ '%W%f:%l: %m,' . \ '%-G%.%#'