Add Golang version check
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
parent
855b1fdd6e
commit
df5862ba0e
5
Makefile
5
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:=
|
||||
|
Loading…
Reference in New Issue
Block a user