Check for gocode, goimports and gogetdoc on go-tools loading

This commit is contained in:
Philippe Daouadi 2017-08-29 08:57:19 +02:00
parent 8cef1932a0
commit f56c5d687e

View File

@ -6,9 +6,11 @@
# - jq for json deserializaton
%sh{
if ! jq --version > /dev/null 2>&1; then
echo 'echo -debug %{Dependency unmet: jq, please install it to use go-tools}'
for dep in gocode goimports gogetdoc jq; do
if ! command -v $dep > /dev/null 2>&1; then
echo "echo -debug %{Dependency unmet: $dep, please install it to use go-tools}"
fi
done
}
# Auto-completion