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 <jakub@status.im>
This commit is contained in:
parent
176ea09c2b
commit
bb8584c58a
10
Makefile
10
Makefile
|
@ -124,6 +124,16 @@ ifeq ($(NIM_PARAMS),)
|
||||||
# The `git reset ...` will try to fix a `make update` that was interrupted
|
# 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
|
# with Ctrl+C after deleting the working copy and before getting a chance to
|
||||||
# restore it in $(BUILD_SYSTEM_DIR).
|
# 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
|
GIT_SUBMODULE_UPDATE := git submodule update --init --recursive
|
||||||
.DEFAULT:
|
.DEFAULT:
|
||||||
+@ echo -e "Git submodules not found. Running '$(GIT_SUBMODULE_UPDATE)'.\n"; \
|
+@ echo -e "Git submodules not found. Running '$(GIT_SUBMODULE_UPDATE)'.\n"; \
|
||||||
|
|
Loading…
Reference in New Issue