Skip to content

Commit

Permalink
Merge pull request vim-syntastic#2166 from arthurkiller/master
Browse files Browse the repository at this point in the history
Checker go/go: fix default go build mode
  • Loading branch information
lcd047 authored Apr 8, 2018
2 parents 21c4a58 + 5664669 commit 746ba6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntax_checkers/go/go.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 746ba6c

Please sign in to comment.