From 5664669a85d2a9aa25cc894a3007e09f5f3fefa4 Mon Sep 17 00:00:00 2001 From: arthur Date: Sun, 8 Apr 2018 19:10:56 +0800 Subject: [PATCH] fix the go syntax checkers with default go build mode --- syntax_checkers/go/go.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax_checkers/go/go.vim b/syntax_checkers/go/go.vim index c45de08fd..56cf6590b 100644 --- a/syntax_checkers/go/go.vim +++ b/syntax_checkers/go/go.vim @@ -56,11 +56,11 @@ function! SyntaxCheckers_go_go_GetLocList() dict " compiled by `go build`, therefore `go test` must be called for those. if bufname(buf) =~# '\m_test\.go$' let cmd = 'test -c' - let opts = syntastic#util#bufVar(buf, 'go_go_test_args', s:go_new ? '-buildmode=archive' : '') + let opts = syntastic#util#bufVar(buf, 'go_go_test_args', s:go_new ? '-buildmode=default' : '') let cleanup = 1 else let cmd = 'build' - let opts = syntastic#util#bufVar(buf, 'go_go_build_args', s:go_new ? '-buildmode=archive' : '') + let opts = syntastic#util#bufVar(buf, 'go_go_build_args', s:go_new ? '-buildmode=default' : '') let cleanup = 0 endif let opt_str = (type(opts) != type('') || opts !=# '') ? join(syntastic#util#argsescape(opts)) : opts