From bb8584c58aa16cf15b10e3be2db1ce77ee40f7ac Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Thu, 14 Sep 2023 12:09:02 +0200 Subject: [PATCH] provide hint when Git LFS is not installed (#5425) Add a hint message during git clone to direct the user to install Git LFS if it is missing. It is required to clone Holesky submodule. --------- Co-authored-by: Jakub --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index b6ebac4f5..839b3e51a 100644 --- a/Makefile +++ b/Makefile @@ -124,6 +124,16 @@ ifeq ($(NIM_PARAMS),) # The `git reset ...` will try to fix a `make update` that was interrupted # with Ctrl+C after deleting the working copy and before getting a chance to # restore it in $(BUILD_SYSTEM_DIR). + +# `vendor/holesky` requires Git LFS +ifeq (, $(shell which git-lfs)) +ifeq ($(shell uname), Darwin) +$(error Git LFS not installed. Run 'brew install git-lfs' to set up) +else +$(error Git LFS not installed) +endif +endif + GIT_SUBMODULE_UPDATE := git submodule update --init --recursive .DEFAULT: +@ echo -e "Git submodules not found. Running '$(GIT_SUBMODULE_UPDATE)'.\n"; \