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

add foundry to dev/up #638

Merged
merged 4 commits into from
Apr 8, 2024
Merged
Changes from 2 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
9 changes: 9 additions & 0 deletions dev/up
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,18 @@ if [[ "${OSTYPE}" == "darwin"* ]]; then
fi
if ! kotlinc -version &>/dev/null; then brew install kotlin; fi
if ! swiftformat -version &>/dev/null; then brew install swiftformat; fi
if ! foundryup -version &>/dev/null; then
# install foundry for tests that require mocking blockchain
curl -L https://foundry.paradigm.xyz | bash
# you made need to adjust this depending on which $SHELL you use
37ng marked this conversation as resolved.
Show resolved Hide resolved
source $HOME/.zshenv
Copy link
Contributor

@insipx insipx Apr 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you know if source $PROFILE would work here?

ref: https://raw.githubusercontent.com/foundry-rs/foundry/master/foundryup/install

echo "Detected your preferred shell is $PREF_SHELL and added foundryup to PATH."
echo "Run 'source $PROFILE' or start a new terminal session to use foundryup."
echo "Then, simply run 'foundryup' to install Foundry."

I haven't tried it myself yet

Copy link
Contributor

@tuddman tuddman Apr 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, as its a different shell environment ...

❯ dev/up
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  2189  100  2189    0     0  14474      0 --:--:-- --:--:-- --:--:-- 14474
Installing foundryup...

Detected your preferred shell is zsh and added foundryup to PATH.
Run 'source /Users/studd/.zshenv' or start a new terminal session to use foundryup.
Then, simply run 'foundryup' to install Foundry.
dev/up: line 19: PROFILE: unbound variable

... but If anyone does hit the error I think its self-explanatory enough to resolve.

foundryup
fi
fi

rustup update



dev/build_validation_service_local
dev/docker/up
Loading