From 5e99c76767ede3a3975c5ad9d342cb72b62d74f7 Mon Sep 17 00:00:00 2001 From: Lee Calcote Date: Mon, 21 Aug 2023 22:08:01 -0500 Subject: [PATCH] make go ver dep optional Signed-off-by: Lee Calcote --- Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 2108a727e..abdf4d13e 100644 --- a/Makefile +++ b/Makefile @@ -73,14 +73,14 @@ test: INSTALLED_GO_VERSION=$(shell go version) dep-check: - + ifeq (,$(findstring $(GOVERSION), $(INSTALLED_GO_VERSION))) # Only send a warning. -# @echo "Dependency missing: go$(GOVERSION). Ensure 'go$(GOVERSION).x' is installed and available in your 'PATH'" + @echo "Dependency missing: go$(GOVERSION). Ensure 'go$(GOVERSION).x' is installed and available in your 'PATH'" @echo "GOVERSION: " $(GOVERSION) - @echo "INSTALLED_GO_VERSION: " $(INSTALLED_GO_VERSION) + @echo "INSTALLED_GO_VERSION: " $(INSTALLED_GO_VERSION) # Force error and stop. - $(error Found $(INSTALLED_GO_VERSION). \ - Required golang version is: 'go$(GOVERSION).x'. \ - Ensure go '$(GOVERSION).x' is installed and available in your 'PATH'.) -endif \ No newline at end of file +# $(error Found $(INSTALLED_GO_VERSION). \ +# Required golang version is: 'go$(GOVERSION).x'. \ +# Ensure go '$(GOVERSION).x' is installed and available in your 'PATH'.) +endif