Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: make check-dependencies #66

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,48 @@ install-dependencies:
@go run ./testing/demo/pkg/setup-env
.PHONY: install-dependencies

## check-dependencies: Check if all dependencies are installed.
check-dependencies:
@echo "--> Checking if all dependencies are installed"
@if command -v cargo >/dev/null 2>&1; then \
echo "cargo is installed."; \
else \
echo "Error: cargo is not installed. Please install Rust."; \
exit 1; \
fi
@if command -v forge >/dev/null 2>&1; then \
echo "foundry is installed."; \
else \
echo "Error: forge is not installed. Please install Foundry."; \
exit 1; \
fi
@if command -v bun >/dev/null 2>&1; then \
echo "bun is installed."; \
else \
echo "Error: bun is not installed. Please install bun."; \
exit 1; \
fi
@if command -v just >/dev/null 2>&1; then \
echo "just is installed."; \
else \
echo "Error: just is not installed. Please install just."; \
exit 1; \
fi
@if command -v cargo prove >/dev/null 2>&1; then \
echo "cargo prove is installed."; \
else \
echo "Error: succinct is not installed. Please install SP1."; \
exit 1; \
fi
@if command -v operator >/dev/null 2>&1; then \
echo "operator is installed."; \
else \
echo "Error: operator is not installed. Please run install-dependencies."; \
exit 1; \
fi
@echo "All dependencies are installed."
.PHONY: check-dependencies

## start: Start all processes needed for the demo.
start: stop
@docker compose up -d
Expand Down
Loading