From 99c2ad4ad502d4d8d35dbd77427da1f5327f882d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Mon, 29 Aug 2022 09:06:19 +0200 Subject: [PATCH] make: fix go version check --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7dbb26945..cee3e8d36 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ unexport GOFLAGS GOCC?=go GOVERSION:=$(shell $(GOCC) version | tr ' ' '\n' | grep go1 | sed 's/^go//' | awk -F. '{printf "%d%03d%03d", $$1, $$2, $$3}') -ifeq ($(shell expr $(GOVERSION) \< 1016000), 1) +ifeq ($(shell expr $(GOVERSION) \< 1018001), 1) $(warning Your Golang version is go$(shell expr $(GOVERSION) / 1000000).$(shell expr $(GOVERSION) % 1000000 / 1000).$(shell expr $(GOVERSION) % 1000)) $(error Update Golang to version to at least 1.18.1) endif