-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Installing solc behind a proxy fails #3057
Comments
hmm this may be related https://www.reddit.com/r/rust/comments/vy5bof/rust_with_reqwest_behind_a_local_http_proxy_burp/ we use https://github.com/roynalnaruto/svm-rs/ to install svm which is its own cli tool pre-built apple silicon solc builds are fetched from https://github.com/roynalnaruto/solc-builds/tree/fc7263e8b571b6a4c754d443fa4b7b4236b4735f/macosx/aarch64 we check if they're installed like this
~/.svm/0.8.16/solc-0.8.16 --version
solc, the solidity compiler commandline interface
Version: 0.8.16+commit.07a7930e.Darwin.appleclang |
@mattsse Thanks for the response. Adding the feature |
I see, will check if there's a workaround for rustls as well |
We are also hitting this issue - any ideas on a work around? I assume this is due to corporate machine setup |
this seems to be a common issue: denoland/deno#10312 does installing via svm directly work? could you share the error output so we can track down where exactly this is thrown? |
@mattsse @jamesmorgan I solved the issue by making one small change to SVM and rebuilding locally. Specifically, I changed this line: https://github.com/roynalnaruto/svm-rs/blob/master/Cargo.toml#L41 to:
and installed SVM separately. Foundary worked without issue after that - even updates. I no longer have details about the specific error output. But essentially is was related to an SSL CERT error when installing foundary rs, a common issue with MITM corporate proxies |
I got around this issue by using @davebryson method whilst installing solc however this same error is thrown when trying to deploy a contract using a script and there seems to be no obvious workaround. Will there be native tls support anytime soon?
|
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
0.2.0
What command(s) is the bug in?
forge build
Operating System
macOS (Apple Silicon)
Describe the bug
Installing
solc
on a new project fails withinvalid peer certificate: UnknownIssuer
. I'm pretty sure this is due to the corporate MITM proxy I'm behind. Is there another way to manually installsolc
as a work around?The text was updated successfully, but these errors were encountered: