Merge pull request #352 from jpoirier/go-checker

check for the go command not GOROOT
pull/406/head
cyoung 2016-03-24 10:34:44 -04:00
commit 5073fdadb6
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -3,7 +3,7 @@ ifeq "$(CIRCLECI)" "true"
BUILDINFO=
else
BUILDINFO=-ldflags "-X main.stratuxVersion=`git describe --tags --abbrev=0` -X main.stratuxBuild=`git log -n 1 --pretty=%H`"
$(if $(GOROOT),,$(error GOROOT is not set!))
$(ifeq (, $(shell which go)),,$(error Go command not found!))
endif
all: