diff --git a/syntax_checkers/go/go.vim b/syntax_checkers/go/go.vim index ecd3afdc..1e708429 100644 --- a/syntax_checkers/go/go.vim +++ b/syntax_checkers/go/go.vim @@ -50,10 +50,12 @@ function! SyntaxCheckers_go_go_GetLocList() dict " Test files, i.e. files with a name ending in `_test.go`, are not " compiled by `go build`, therefore `go test` must be called for those. if match(expand('%', 1), '\m_test\.go$') == -1 - let makeprg = self.getExec() . ' build ' . syntastic#c#NullOutput() + let opts = syntastic#util#shescape(syntastic#util#var('go_go_build_args')) + let makeprg = self.getExec() . ' build ' . opts . ' ' . syntastic#c#NullOutput() let cleanup = 0 else - let makeprg = self.getExec() . ' test -c ' . syntastic#c#NullOutput() + let opts = syntastic#util#shescape(syntastic#util#var('go_go_test_args')) + let makeprg = self.getExec() . ' test -c ' . opts . ' ' . syntastic#c#NullOutput() let cleanup = 1 endif