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

Fix native compiler in windows #913

Merged
merged 4 commits into from
Oct 20, 2020
Merged

Fix native compiler in windows #913

merged 4 commits into from
Oct 20, 2020

Conversation

fvictorio
Copy link
Member

This PR avoids unzipping .exe files in windows. This is necessary
because solc builds for windows are distributed as .exe files from
0.7.2, but were .zip files before that version.

This also tries to handle unexpected errors when the compiler is
obtained: if there was such an error while getting a native compiler,
it tries to fetch the solcjs compiler instead.

One downside of this is that if a problem appears and it's persistent,
then hardhat will try to download the native compiler every time, fail
and then use solcjs.

@fvictorio fvictorio merged commit 5c4a55e into 2.0 Oct 20, 2020
@fvictorio fvictorio deleted the handle-solc-failure branch October 20, 2020 23:20
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants