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
Cache solc compilers in CI #5169
Comments
|
We need multiple cache dirs, one for each OS. Example(s): cache-v2 -> cache_macosx-amd64 or convention on ENUM pattern: cache-v2 -> cache-MACOS or lastly we have cache folders within named for OS. We then update references to the cache-v2 folder to a subdir or new naming convention, with subdir we use |
It already sort of does this: https://www.npmjs.com/package/env-paths running
But that's redundant because of Conclusion: We should probably just have documentation to set path-env if that was the issue. I understand that the VM with the container might be what you're after, so I'll look through and see if the compiler object in the config can additionally support an OS type like:
|
lastly... We'll need to select the right version every time, but I think the current method does os. |
|
This issue is targeted at the caching for Hardhat's own CI tests, rather than projects that use Hardhat. |
We are going to hold on this - our CI has been reworked and several issues fixed. We will let that bed in and reassess. |
To reduce the number of CI fails due to a solc compiler download failure we should add OS specific cache for the solc cache folder.
We shouldn't need cache invalidation as the solc compiler is always the same for each version. Though we should consider if there is a nice way of including these caches in lots of workflows.
The text was updated successfully, but these errors were encountered: