Merge remote-tracking branch 'blastrock/go-tools-error'

This commit is contained in:
Maxime Coste 2017-08-31 11:21:44 +07:00
commit 1e4e39ffd2

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