Nimbin[12]?Mirrors & Forks / syntastic / commits / 51173332

syntastic git · master

syntastic vim plugin (fork)

vim fork · first commit 2009-07-10 · last commit 2022-07-10 (4 years ago) · synced 3 days ago · upstream: github.com/vim-syntastic/syntastic

Vim Script 99%
git clone https://git.christianimmanuel.de/mirrors-forks/syntastic.gitwget https://git.christianimmanuel.de/mirrors-forks/syntastic/archive/syntastic.tar.gz

fix the go syntax checkers with default go build mode

arthur · 2018-04-08 11:10 · 511733327d514ad88769643fdab6339bd0bfa07e

 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 c45de08f..56cf6590 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