Skip to content

Commit

Permalink
Fix foundry version check (#534)
Browse files Browse the repository at this point in the history
## tl;dr

Foundry seems to have updated the way they display versions from `v1.0.0` to `1.0.0-stable`, which breaks our Foundry check

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

- **Chores**
  - Refined the version verification logic for a key dependency to ensure compatibility, so users receive the correct prompt if the required version isn’t installed.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
neekolas authored Feb 24, 2025
1 parent 0f8c2b3 commit 1f8192f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/up
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e

if ! which forge &>/dev/null; then echo "ERROR: Missing foundry binaries. Run 'curl -L https://foundry.paradigm.xyz | bash' and follow the instructions to install foundry 1.0.0" && exit 1; fi
if ! forge --version | grep -q "v1.0.0"; then echo "ERROR: Foundry version is not 1.0.0. Please install the correct version." && exit 1; fi
if ! forge --version | grep -q "1.0.0"; then echo "ERROR: Foundry version is not 1.0.0. Please install the correct version." && exit 1; fi
if ! which shellcheck &>/dev/null; then brew install shellcheck; fi
if ! which jq &>/dev/null; then brew install jq; fi

Expand Down

0 comments on commit 1f8192f

Please sign in to comment.