Commit eb977a8e authored by Michael Amadi's avatar Michael Amadi Committed by GitHub

update check-foundry-install.sh to check-dep-install.sh (#12778)

* add semgrep check to checks and rename check-foundry-install to check-dep-install

* fixes

* fixes
parent 4ee0737d
......@@ -19,7 +19,7 @@ update-foundry:
bash ./ops/scripts/install-foundry.sh
check-foundry:
bash ./packages/contracts-bedrock/scripts/checks/check-foundry-install.sh
bash ./ops/scripts/check-foundry.sh
install-kontrol:
curl -L https://kframework.org/install | bash && just update-kontrol
......
#!/usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
CONTRACTS_BASE=$(dirname "$(dirname "$SCRIPT_DIR")")
MONOREPO_BASE=$(dirname "$(dirname "$CONTRACTS_BASE")")
VERSIONS_FILE="${MONOREPO_BASE}/versions.json"
VERSIONS_FILE="versions.json"
if ! command -v jq &> /dev/null
then
......
......@@ -16,15 +16,23 @@ dep-status:
########################################################
# Checks that the correct version of Foundry is installed.
prebuild:
./scripts/checks/check-foundry-install.sh
check-foundry:
cd ../../ && ./ops/scripts/check-foundry.sh
# Checks that semgrep is installed.
check-semgrep:
cd ../../ && just check-semgrep
# Checks that the correct versions of Foundry and semgrep are installed.
check-dependencies:
just check-foundry && just check-semgrep
# Core forge build command
forge-build:
forge build
# Builds the contracts.
build: prebuild lint-fix-no-fail forge-build interfaces-check-no-build
build: check-dependencies lint-fix-no-fail forge-build interfaces-check-no-build
# Builds the go-ffi tool for contract tests.
build-go-ffi-default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment