Merge pull request #445 from filecoin-project/misc/require-go1.13
Add Golang version check
This commit is contained in:
commit
007edf7830
5
Makefile
5
Makefile
@ -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:=
|
||||||
|
Loading…
Reference in New Issue
Block a user