Merge pull request #445 from filecoin-project/misc/require-go1.13

Add Golang version check
This commit is contained in:
Łukasz Magiera 2019-10-22 18:46:00 +02:00 committed by GitHub
commit 007edf7830
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,11 @@
all: build all: build
.PHONY: all .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 # git modules that need to be loaded
MODULES:= MODULES:=