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: ...@@ -19,7 +19,7 @@ update-foundry:
bash ./ops/scripts/install-foundry.sh bash ./ops/scripts/install-foundry.sh
check-foundry: check-foundry:
bash ./packages/contracts-bedrock/scripts/checks/check-foundry-install.sh bash ./ops/scripts/check-foundry.sh
install-kontrol: install-kontrol:
curl -L https://kframework.org/install | bash && just update-kontrol curl -L https://kframework.org/install | bash && just update-kontrol
......
#!/usr/bin/env bash #!/usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) VERSIONS_FILE="versions.json"
CONTRACTS_BASE=$(dirname "$(dirname "$SCRIPT_DIR")")
MONOREPO_BASE=$(dirname "$(dirname "$CONTRACTS_BASE")")
VERSIONS_FILE="${MONOREPO_BASE}/versions.json"
if ! command -v jq &> /dev/null if ! command -v jq &> /dev/null
then then
......
...@@ -16,15 +16,23 @@ dep-status: ...@@ -16,15 +16,23 @@ dep-status:
######################################################## ########################################################
# Checks that the correct version of Foundry is installed. # Checks that the correct version of Foundry is installed.
prebuild: check-foundry:
./scripts/checks/check-foundry-install.sh 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 # Core forge build command
forge-build: forge-build:
forge build forge build
# Builds the contracts. # 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. # Builds the go-ffi tool for contract tests.
build-go-ffi-default: 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