#!/usr/bin/env bash

set -e

if [ -z "$GOPATH" ]; then
	echo '$GOPATH environment variable not set. Have you installed Go?'
	exit 1
fi

which pigeon >/dev/null || {
	echo "Installing pigeon from vendor"
	go install ./vendor/github.com/mna/pigeon
}


which goimports >/dev/null || {
	echo "Installing goimports from vendor"
	go install ./vendor/golang.org/x/tools/cmd/goimports
}

which golint >/dev/null || {
	echo "Installing golint from vendor"
	go install ./vendor/github.com/golang/lint/golint
}

#!/usr/bin/env bash

set -e

which pigeon >/dev/null || {
	echo "Installing pigeon from vendor"
	go install ./vendor/github.com/mna/pigeon
}


which goimports >/dev/null || {
	echo "Installing goimports from vendor"
	go install ./vendor/golang.org/x/tools/cmd/goimports
}

which golint >/dev/null || {
	echo "Installing golint from vendor"
	go install ./vendor/github.com/golang/lint/golint
}

Remove GOPATH warning from build scripts
Remove GOPATH warning from build scripts

Go now defaults to ~/go so this is no longer required.
