mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 21:24:33 +08:00
Merge pull request #470 from breed808/gobuild
Fix gobuild linter with multiple source files
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user