Makefile: check for Go compiler, suggest version
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
e199ddbe9d
commit
bee9b4afd5
7
Makefile
7
Makefile
|
@ -215,7 +215,12 @@ endif
|
|||
docker push $(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_CUSTOM_TAG)
|
||||
|
||||
setup: ##@setup Install all tools
|
||||
setup: setup-build setup-dev tidy
|
||||
setup: setup-check setup-build setup-dev tidy
|
||||
|
||||
setup-check: ##@setup Check if Go compiler is installed.
|
||||
ifeq (, $(shell which go))
|
||||
$(error "No Go compiler found! Make sure to install 1.17.0 or newer.")
|
||||
endif
|
||||
|
||||
setup-dev: ##@setup Install all necessary tools for development
|
||||
setup-dev: install-lint install-mock install-modvendor install-protobuf tidy install-os-deps
|
||||
|
|
Loading…
Reference in New Issue