Makefile: check for Go compiler, suggest version

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-05-09 15:32:42 +02:00 committed by Jakub
parent e199ddbe9d
commit bee9b4afd5
1 changed files with 6 additions and 1 deletions

View File

@ -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