From a6fd06e835ecfc95a1c14e46c880300f3b31cf1b Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Thu, 7 Dec 2023 16:06:14 +0100 Subject: [PATCH] [build] Report go executable path if version insufficient --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2c727658..cc035079 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,8 @@ MINIMUM_SUPPORTED_GO_MINOR_VERSION = 20 GO_MAJOR_VERSION = $(shell go version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f1) GO_MINOR_VERSION = $(shell go version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f2) -GO_VERSION_VALIDATION_ERR_MSG = Go version $(GO_MAJOR_VERSION).$(GO_MINOR_VERSION) is not supported, please update to at least $(MINIMUM_SUPPORTED_GO_MAJOR_VERSION).$(MINIMUM_SUPPORTED_GO_MINOR_VERSION) +WHICH_GO = $(shell which go) +GO_VERSION_VALIDATION_ERR_MSG = Go version $(GO_MAJOR_VERSION).$(GO_MINOR_VERSION) at $(WHICH_GO) is not supported, please update to at least $(MINIMUM_SUPPORTED_GO_MAJOR_VERSION).$(MINIMUM_SUPPORTED_GO_MINOR_VERSION) HOST_GOOS=$(shell go env GOOS) HOST_GOARCH=$(shell go env GOARCH)