From 0fd0d4c7fe42310da1d312be95cebd0bed32a998 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Wed, 14 May 2014 15:42:14 +0000 Subject: Add warning about GOPATH to bug_chomper/run_server.sh BUG=skia:2551 R=scroggo@google.com Author: borenet@google.com Review URL: https://codereview.chromium.org/285763003 git-svn-id: http://skia.googlecode.com/svn/trunk@14732 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tools/bug_chomper/run_server.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tools') diff --git a/tools/bug_chomper/run_server.sh b/tools/bug_chomper/run_server.sh index 1a49031f8e..c2d5ad420c 100755 --- a/tools/bug_chomper/run_server.sh +++ b/tools/bug_chomper/run_server.sh @@ -3,7 +3,14 @@ if [[ -z `which go` ]]; then exit 1 fi +if [[ -z "$GOPATH" ]]; then + echo "GOPATH environment variable is not set. Please see" + echo "http://golang.org/doc/code.html#GOPATH for more information." + exit 1 +fi + go get github.com/gorilla/securecookie +go get code.google.com/p/goauth2 DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" cd $DIR -- cgit v1.2.3