diff --git a/Makefile b/Makefile index cb550bf57..6c3a6049f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,11 @@ all: build .PHONY: all +GOVERSION:=$(shell go version | cut -d' ' -f 3 | cut -d. -f 2) +ifeq ($(shell expr $(GOVERSION) \< 13), 1) +$(warning Your Golang version is go 1.$(GOVERSION)) +$(error Update Golang to version $(shell grep '^go' go.mod)) +endif # git modules that need to be loaded MODULES:=