Skip to content

Commit

Permalink
Merge pull request #1152 from ismail/ismail-patch-1
Browse files Browse the repository at this point in the history
If GOPATH is empty check for the value of go env GOPATH
  • Loading branch information
fatih authored Jan 7, 2017
2 parents 8775ba7 + 407dcda commit f939162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/go.vim
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ command! -nargs=? -complete=dir GoPath call go#path#GoPath(<f-args>)
" target install directory. GoInstallBinaries doesn't install binaries if they
" exist, to update current binaries pass 1 to the argument.
function! s:GoInstallBinaries(updateBinaries)
if $GOPATH == ""
if $GOPATH == "" && go#util#gopath() == ""
echohl Error
echomsg "vim.go: $GOPATH is not set"
echohl None
Expand Down

0 comments on commit f939162

Please sign in to comment.