Go checker: no longer attempt to redirect output of "go build".
Running "go build -o /dev/null" in a main package that lives in GOPATH produces an error message: build output "/dev/null" already exists and is not an object file This issue won't be addressed on the Go side: http://code.google.com/p/go/issues/detail?id=4851 https://github.com/golang/go/issues/4851 Consequently, syntastic leaves this to the user to resolve. Set g:syntastic_go_go_build_args to something including "-o /some/dir" to redirect the output of "go build".
This commit is contained in:
parent
5c6e78a271
commit
e15ebd3367
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:_SYNTASTIC_START
|
lockvar! g:_SYNTASTIC_START
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:_SYNTASTIC_VERSION = '3.6.0-88'
|
let g:_SYNTASTIC_VERSION = '3.6.0-89'
|
||||||
lockvar g:_SYNTASTIC_VERSION
|
lockvar g:_SYNTASTIC_VERSION
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
|
@ -59,7 +59,7 @@ function! SyntaxCheckers_go_go_GetLocList() dict
|
|||||||
let cleanup = 1
|
let cleanup = 1
|
||||||
endif
|
endif
|
||||||
let opt_str = (type(opts) != type('') || opts !=# '') ? join(syntastic#util#argsescape(opts)) : opts
|
let opt_str = (type(opts) != type('') || opts !=# '') ? join(syntastic#util#argsescape(opts)) : opts
|
||||||
let makeprg = self.getExec() . ' ' . cmd . ' ' . opt_str . ' ' . syntastic#c#NullOutput()
|
let makeprg = self.getExec() . ' ' . cmd . ' ' . opt_str
|
||||||
|
|
||||||
" The first pattern is for warnings from C compilers.
|
" The first pattern is for warnings from C compilers.
|
||||||
let errorformat =
|
let errorformat =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user