From f833d9a59417c3c953a8506495384bf139064805 Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Fri, 6 Jun 2014 23:36:25 -0700 Subject: [PATCH] Add a error if go isn't present on the system. --- hack/config-go.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hack/config-go.sh b/hack/config-go.sh index dc79f0ea292..195feff23d2 100755 --- a/hack/config-go.sh +++ b/hack/config-go.sh @@ -15,6 +15,12 @@ # This script sets up a go workspace locally and builds all go components. # You can 'source' this file if you want to set up GOPATH in your local shell. +if [ "$(which go)" == "" ]; then + echo "Can't find 'go' in PATH, please fix and retry." + echo "See http://golang.org/doc/install for installation instructions." + exit 1 +fi + pushd $(dirname "${BASH_SOURCE}")/.. >/dev/null KUBE_REPO_ROOT="${PWD}" KUBE_TARGET="${KUBE_REPO_ROOT}/output/go"