-
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
solc repeated installation: makes the foundry too slow #5601
Comments
hmm, can you please run with this could be a checksum issue, can you try nuking the |
I have tried: deleted ~/svm, but the problem is the same. |
like
or set the RUST_LOG env var |
the result of RUST_LOG is :
By the way, not only this project, but also the other foundry project which I use has the same problems. It always installs the solc although there is one in ~/.svm. But when I test the demo template the foundry provides me, it doesn't wrong. |
interesting, can you check what's the sha2 of these files? |
I use this site to hash: https://oktools.net/file-hash C:\Users\ChenQin.svm\0.4.26\solc-0.4.26
C:\Users\ChenQin.svm\0.5.12\solc-0.5.12
C:\Users\ChenQin.svm\0.7.0\solc-0.7.0
C:\Users\ChenQin.svm\0.5.12\solc-0.8.0
C:\Users\ChenQin.svm\0.4.26\slotest.exe
the ~.svm:
|
ah yikes, on windows this track the hash of the zip file not the actual binary. will get that fixed, in the meantime you can run with --offline to prevent redownloads |
I use |
All releases before 0.7.2 (excluded) hash the zip file instead of the executable file. You can see this in the |
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 test --match-path test/04.broker/attackTest.sol -vvvv
Operating System
Windows
Describe the bug
When I run a test for example: forge test --match-path test/04.broker/attackTest.sol -vvvv, the foundry will install sloc again and again although it has install the same sloc version before.
In this example, the sloc version 0.4.26 and 0.5.12 install again. Once I run a test, foundry will install the sloc though it has install it before, it makes my foundry too slow.
The text was updated successfully, but these errors were encountered: