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

Toolchain "incompatability" in devcontainer #10701

Closed
koxu1996 opened this issue Dec 13, 2024 · 2 comments · Fixed by #10836
Closed

Toolchain "incompatability" in devcontainer #10701

koxu1996 opened this issue Dec 13, 2024 · 2 comments · Fixed by #10836

Comments

@koxu1996
Copy link

koxu1996 commented Dec 13, 2024

With devcontainer workaround #10698 (comment) I was finally able to run ./bootstrap.sh script. However, it surprised me with:

ERROR: Toolchain incompatability. We encourage use of our dev container. See build-images/README.md.
forge not in PATH or incorrect version (requires 25f24e677a6a32a62512ad4f561995589ac2c7dc).
Installation: https://book.getfoundry.sh/getting-started/installation
  curl -L https://foundry.paradigm.xyz | bash
  foundryup -v nightly-25f24e677a6a32a62512ad4f561995589ac2c7dc

I am already using the encouraged devcontainer, so it seems that version does not match:

$ forge --version
forge 0.2.0 (de33b6a 2024-05-06T19:23:51.360808005Z)

NOTE: incompatability is a typo.

@koxu1996
Copy link
Author

Workaround

NOTE: All commands are executed in devcontainer dev.

  1. Remove existing non-compatible foundry:
sudo rm -rf /opt/foundry
  1. Install expected version:
curl -L https://foundry.paradigm.xyz | bash
source /home/aztec-dev/.zshenv
foundryup -v nightly-25f24e677a6a32a62512ad4f561995589ac2c7dc
  1. Now you can run ./bootstrap.sh fast without error 😌.

@Maddiaa0
Copy link
Member

Sorry you've ran into this, i think we need to update the devcontainer to use devbox:1.1 which has the correct toolchains installed.

@alexghr alexghr linked a pull request Dec 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants