File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -81,15 +81,21 @@ function check_toolchains {
8181 exit 1
8282 fi
8383 # Check foundry version.
84- local foundry_version=" nightly-99634144b6c9371982dcfc551a7975c5dbf9fad8 "
84+ local foundry_version=" v1.3.3 "
8585 for tool in forge anvil; do
8686 if ! $tool --version 2> /dev/null | grep " ${foundry_version# nightly-} " > /dev/null; then
87- encourage_dev_container
8887 echo " $tool not in PATH or incorrect version (requires $foundry_version )."
89- echo " Installation: https://book.getfoundry.sh/getting-started/installation"
90- echo " curl -L https://foundry.paradigm.xyz | bash"
91- echo " foundryup -i $foundry_version "
92- exit 1
88+ if [ " ${CI:- 0} " -eq 1 ]; then
89+ echo " Attempting install of required foundry version $foundry_version "
90+ curl -L https://foundry.paradigm.xyz | bash
91+ foundryup -i $foundry_version
92+ else
93+ encourage_dev_container
94+ echo " Installation: https://book.getfoundry.sh/getting-started/installation"
95+ echo " curl -L https://foundry.paradigm.xyz | bash"
96+ echo " foundryup -i $foundry_version "
97+ exit 1
98+ fi
9399 fi
94100 done
95101 # Check Node.js version.
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ RUN git clone https://github.com/tpoechtrager/osxcross.git \
6666# #######################################################################################################################
6767# Build foundry.
6868FROM base-build AS foundry
69- ENV FOUNDRY_VERSION=nightly-99634144b6c9371982dcfc551a7975c5dbf9fad8
69+ ENV FOUNDRY_VERSION=v1.3.3
7070ENV FOUNDRY_BIN_DIR="/root/.foundry/bin"
7171ENV RUSTUP_HOME=/opt/rust/rustup
7272ENV CARGO_HOME=/opt/rust/cargo
You can’t perform that action at this time.
0 commit comments