We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8775ba7 + 407dcda commit f939162Copy full SHA for f939162
plugin/go.vim
@@ -32,7 +32,7 @@ command! -nargs=? -complete=dir GoPath call go#path#GoPath(<f-args>)
32
" target install directory. GoInstallBinaries doesn't install binaries if they
33
" exist, to update current binaries pass 1 to the argument.
34
function! s:GoInstallBinaries(updateBinaries)
35
- if $GOPATH == ""
+ if $GOPATH == "" && go#util#gopath() == ""
36
echohl Error
37
echomsg "vim.go: $GOPATH is not set"
38
echohl None
0 commit comments