From 89eaec7a9e559015ba5d474c80bc4a059ccf462c Mon Sep 17 00:00:00 2001 From: MiyurZ Date: Wed, 14 Dec 2016 17:56:09 +0530 Subject: [PATCH] If not mercurial, clone with git. just dont exit because we dont have mercurial. --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d5d53f30e..69e8e8959 100644 --- a/Makefile +++ b/Makefile @@ -112,11 +112,12 @@ endif ifndef HAS_GOX go get -u github.com/mitchellh/gox endif + ifndef HAS_HG - $(error You must install Mercurial (hg)) -endif + @echo "Mercurial is not installed! Checking for Git" ifndef HAS_GIT - $(error You must install Git) + $(error You must either install Mercurial or Git) +endif endif glide install --strip-vendor go build -o bin/protoc-gen-go ./vendor/github.com/golang/protobuf/protoc-gen-go