diff options
author | Sander van Harmelen <sander@xanzy.io> | 2017-07-11 16:52:18 +0200 |
---|---|---|
committer | Sander van Harmelen <sander@xanzy.io> | 2017-07-11 17:13:04 +0200 |
commit | 5c7b55edec8ff3c400d429436c1dc68037eebbb0 (patch) | |
tree | 5ee3aab614ebca0556ebc4cc8cbfe76557906303 /ale_linters/go | |
parent | 768f761017e4d67d8724684df874006d5b04147d (diff) | |
download | ale-5c7b55edec8ff3c400d429436c1dc68037eebbb0.zip |
Make gometalinter work again
They changed their logic to use related paths instead of absoluut paths (see [here](https://github.com/alecthomas/gometalinter/commit/a04df08be5899be3c7ad69aa379858dcb660c709#diff-04424ed7c660c10495a54e8d11be89eaR253))
This fixes the linter by also using relative paths…
Diffstat (limited to 'ale_linters/go')
-rw-r--r-- | ale_linters/go/gometalinter.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/go/gometalinter.vim b/ale_linters/go/gometalinter.vim index db7f7c11..95251303 100644 --- a/ale_linters/go/gometalinter.vim +++ b/ale_linters/go/gometalinter.vim @@ -10,11 +10,11 @@ endfunction function! ale_linters#go#gometalinter#GetCommand(buffer) abort let l:executable = ale_linters#go#gometalinter#GetExecutable(a:buffer) - let l:filename = expand('#' . a:buffer . ':p') + let l:filename = expand('#' . a:buffer) let l:options = ale#Var(a:buffer, 'go_gometalinter_options') return ale#Escape(l:executable) - \ . ' --include=''^' . l:filename . '.*$''' + \ . ' --include=' . ale#Escape(l:filename) \ . (!empty(l:options) ? ' ' . l:options : '') \ . ' ' . ale#Escape(fnamemodify(l:filename, ':h')) endfunction |