Merge pull request #470 from breed808/gobuild
Fix gobuild linter with multiple source files
This commit is contained in:
commit
349b31104a
@ -18,8 +18,8 @@ function! ale_linters#go#gobuild#GetCommand(buffer, goenv_output) abort
|
|||||||
\ 'GOROOT': a:goenv_output[1],
|
\ 'GOROOT': a:goenv_output[1],
|
||||||
\}
|
\}
|
||||||
endif
|
endif
|
||||||
|
" Run go test in local directory with relative path
|
||||||
return 'GOPATH=' . s:go_env.GOPATH . ' go test -c -o /dev/null %s'
|
return 'GOPATH=' . s:go_env.GOPATH . ' cd ' . fnamemodify(bufname(a:buffer), ':.:h') . ' && go test -c -o /dev/null ./'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! ale_linters#go#gobuild#Handler(buffer, lines) abort
|
function! ale_linters#go#gobuild#Handler(buffer, lines) abort
|
||||||
|
Loading…
Reference in New Issue
Block a user