alloy-rs / svm-rs

Solidity-Compiler Version Manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

while installing anvil on MacOS, svm gives Reqwest errors

bout3fiddy opened this issue · comments

while following instructions to install anvil and foundry:

image

I get the following error:

% cargo install --path ./anvil --bins --locked --force
  Installing anvil v0.1.0
    Updating crates.io index
warning: package `blake2 v0.10.4` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
warning: package `cpufeatures v0.2.2` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
warning: package `ecdsa v0.14.3` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
warning: package `fastrlp-derive v0.1.1` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
warning: package `plotters v0.3.2` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
   Compiling svm-rs-builds v0.1.8
error: failed to run custom build command for `svm-rs-builds v0.1.8`

Caused by:
  process didn't exit successfully: `~/foundry/target/release/build/svm-rs-builds-d4598cfda6d3f928/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at 'Failed to fetch releases: ReqwestError(reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("github.com")), port: None, path: "/roynalnaruto/solc-builds/raw/ff4ea8a7bbde4488428de69f2c40a7fc56184f5e/macosx/aarch64/list.json", query: None, fragment: None }, source: TimedOut })', 

This is a timed out request, could you try again with network access?

I do have network access, and I'm not on a VPN. And yet this error persists.

I tried the same on a better network and it still fails here.

@mattsse any possible solution to this facing same error when trying to build anvil locally. I think the issue it is due to no proper solc build for specific version of os. In my case is macos ventura on m1 mac.

Caused by:
  process didn't exit successfully: `/Users/bapir/projects/foundry/target/debug/build/svm-rs-builds-56c01b1a115d77ab/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at 'Failed to fetch releases: ReqwestError(reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("github.com")), port: None, path: "/roynalnaruto/solc-builds/raw/ff4ea8a7bbde4488428de69f2c40a7fc56184f5e/macosx/aarch64/list.json", query: None, fragment: None }, source: TimedOut })', /Users/bapir/.cargo/registry/src/github.com-1ecc6299db9ec823/svm-rs-builds-0.1.10/build.rs:110:57
  stack backtrace:
     0:        0x1006c8f00 - std::backtrace_rs::backtrace::libunwind::trace::h72c73b9e5db0005d
                                 at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5

Seems like the source url: https://raw.githubusercontent.com/roynalnaruto/solc-builds/ff4ea8a7bbde4488428de69f2c40a7fc56184f5e/macosx/aarch64/list.json isn't accessible through the isp I was using. Changing the isp fixed it.

Closing this based on the above comment

commented

plz serve these binaries on release or other platforms, really hard to download files from github.com directly in command line