summaryrefslogtreecommitdiff
path: root/ale_linters/go/gobuild.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/go/gobuild.vim')
-rw-r--r--ale_linters/go/gobuild.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/ale_linters/go/gobuild.vim b/ale_linters/go/gobuild.vim
index e6ca9f97..0bac9f26 100644
--- a/ale_linters/go/gobuild.vim
+++ b/ale_linters/go/gobuild.vim
@@ -101,6 +101,12 @@ function! ale_linters#go#gobuild#CopyFiles(buffer, golist_output) abort
endfunction
function! ale_linters#go#gobuild#GetCommand(buffer, copy_output) abort
+ " If for some reason we don't get any output from the last command, stop
+ " here.
+ if empty(a:copy_output)
+ return ''
+ endif
+
let l:tempdir = a:copy_output[0]
let l:importpath = s:PackageImportPath(a:buffer)