From ab43e2accb07cb2299a16a5961e19d26d3480bb9 Mon Sep 17 00:00:00 2001 From: Marco Vedovati Date: Fri, 16 Nov 2018 17:32:22 +0100 Subject: [PATCH] make: add ability to skip go version check Add the ability to skip checking the go version, by passing to make the variable SKIP_GO_VERSION_CHECK=1 Fixes: #916 Signed-off-by: Marco Vedovati --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 57969f7c4..35bb58c02 100644 --- a/Makefile +++ b/Makefile @@ -14,11 +14,14 @@ done) GOARCH=$(shell go env GOARCH) HOST_ARCH=$(shell arch) +SKIP_GO_VERSION_CHECK= -include golang.mk +ifeq ($(SKIP_GO_VERSION_CHECK),) + include golang.mk +endif ifeq ($(ARCH),) - ARCH = $(GOARCH) + ARCH = $(GOARCH) endif ARCH_DIR = arch