Skip to content

Commit

Permalink
fix: update notice of ~/.svm/ directory usage in regards to changes i…
Browse files Browse the repository at this point in the history
…n `svm-rs` (#1239)

* update notice of ~/.svm/ directory usage in regards to changes in svm-rs

* add note of most common mapped located of XDG_DATA_HOME when unset
  • Loading branch information
zerosnacks authored Jul 10, 2024
1 parent 59b6071 commit 2fdf451
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ Forge will sometimes check for newer Solidity versions that fit your project. To

### I'm getting Solc errors

[solc-bin](https://binaries.soliditylang.org/) doesn't offer static builds for apple silicon. Foundry relies on [svm](https://github.com/roynalnaruto/svm-rs) to install native builds for apple silicon.
[solc-bin](https://binaries.soliditylang.org/) doesn't offer static builds for Apple silicon. Foundry relies on [svm](https://github.com/alloy-rs/svm-rs) to install native builds for Apple silicon.

All solc versions are installed under `~/.svm/`. If you encounter solc related errors, such as `SolcError: ...` please to nuke `~/.svm/` and try again, this will trigger a fresh install and usually resolves the issue.
All solc versions are installed under `~/.svm/` if the directory already exists. If not, it uses `$XDG_DATA_HOME/svm/`, commonly mapped to `$HOME/.local/share/svm/`. If you encounter solc related errors, such as `SolcError: ...` please remove the `~/.svm/` directory and try again, this will trigger a fresh install and usually resolves the issue.

If you're on apple silicon, please ensure the [`z3` theorem prover](https://github.com/Z3Prover/z3) is installed: `brew install z3`
If you're on Apple silicon, please ensure the [`z3` theorem prover](https://github.com/Z3Prover/z3) is installed: `brew install z3`

> **Note**: native apple silicon builds are only available from `0.8.5` upwards. If you need older versions, you must enable apple silicon rosetta to run them.
> **Note**: native Apple silicon builds are only available from `0.8.5` upwards. If you need older versions, you must enable Apple silicon rosetta to run them.
### Forge fails in JavaScript monorepos (`pnpm`)

Expand Down

0 comments on commit 2fdf451

Please sign in to comment.