From ff5ca94aa046f4da29ced204ab52c8d056925bb2 Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Fri, 15 Aug 2014 20:44:29 -0700 Subject: [PATCH] Add a better error message if godep isn't in the path. --- hack/config-go.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hack/config-go.sh b/hack/config-go.sh index 69c8546ca52..de2593b5cca 100644 --- a/hack/config-go.sh +++ b/hack/config-go.sh @@ -23,6 +23,12 @@ if [[ -z "$(which go)" ]]; then exit 1 fi +if [[ -z "$(which godep)" ]]; then + echo "Can't find 'godep' in PATH, please fix and retry." >&2 + echo "See https://github.com/tools/godep#install for installation instructions." >&2 + exit 1 +fi + # Travis continuous build uses a head go release that doesn't report # a version number, so we skip this check on Travis. Its unnecessary # there anyway.