foundry-rs / hardhat

Foundry-Hardhat plugins: Use Foundry for Hardhat projects
Other
91 stars 18 forks source link

Failed to install solc 0.8.15: Checksum mismatch for version 0.8.15 #57

Open kamescg opened 2 years ago

kamescg commented 2 years ago

The Situation

Just finished installing foundryup and adding the hardhat plugins to an existing project.

When running hadhat compile I have gotten 2 different CLI outputs; only run 3 times.

However, the main issue I am reporting is the checksum mismatch for v0.8.15

1st and 3rd time

[⠘] installing solc version "0.5.8"
[⠃] Successfully installed solc 0.5.8
[⠊] installing solc version "0.8.15"
[⠒] Failed to install solc 0.8.15: Checksum mismatch for version 0.8.15

Error: 
   0: Checksum mismatch for version 0.8.15

Location:
   cli/src/compile.rs:100

2nd time

[⠢] installing solc version "0.7.6"
[⠔] Successfully installed solc 0.7.6
[⠒] installing solc version "0.4.26"
[⠆] Successfully installed solc 0.4.26
[⠆] installing solc version "0.7.3"
[⠰] Successfully installed solc 0.7.3
[⠰] installing solc version "0.5.17"
[⠆] Successfully installed solc 0.5.17
[⠢] installing solc version "0.6.12"
[⠢] Successfully installed solc 0.6.12
[⠆] installing solc version "0.8.15"
[⠔] Failed to install solc 0.8.15: Checksum mismatch for version 0.8.15
mattsse commented 2 years ago

what OS are you on and what build?

kamescg commented 2 years ago

OS: macOS Monterey v12.0.1 using M1 chip Build: forge 0.2.0 (e4a2915 2022-06-19T00:05:22.438573Z)

mattsse commented 2 years ago

@roynalnaruto 0.8.15 should be supported natively by svm already on M1 right?

roynalnaruto commented 2 years ago

Thanks @mattsse for the relevant fixes in svm-rs and solc-builds. Once https://github.com/roynalnaruto/svm-rs/pull/46 is merged this should be resolved upon publishing a new version of svm-rs @kamescg