-
Notifications
You must be signed in to change notification settings - Fork 20
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
Failing with FileNotFoundError: [Errno 2] No such file or directory: '/github/workspace/artifacts/build-info' #56
Comments
HI @Phips0812, thanks for the report! We have seen this happening a few times in the recent weeks but we have not been able to pinpoint what causes it. There have been no new Slither nor action releases in these last few days, so it's probably not something that changed in Slither or Crytic-compile. Have you upgraded anything else on your project recently? (e.g. solc version in your config, hardhat version, npm dependencies, node version in CI, etc?) For reference, this is the code that invokes Hardhat. It uses https://github.com/crytic/crytic-compile/blob/master/crytic_compile/platform/hardhat.py#L177-L193 I see there is also this warning being printed from your Hardhat:
If you could try using a supported version (see the Thanks again! |
We get this too... (Example) It doesn't happen consistently, so it sounds like a race condition of some kind. |
Looking at the Hardhat issue tracker, this might be related: NomicFoundation/hardhat#3877 |
Same issue here. The only difference is that – so far – it happens always, not randomly, as mentioned above. I'm using slither-action v0.3.0 with latest Node LTS (18) + Solidity compiler v0.8.17 Regarding this error: All you need to do is add node's version when you are defining the step. Like this:
|
Setting the node-version for slither to 18.15 seems to fix this for now:
Thanks @frangio for the mentioned commit. |
We also started seeing this issue recently with |
I am using crytic/[email protected] within my GitHub Actions and it worked like a charm until a few day ago.
Since it few days it's failing with the following error. I think it is related that one step is not waiting for the other as it can also be seen in the snippet below.
npx hardhat compile --force
is running and normally there should come the output of the compilation. However it directly tries to find/github/workspace/artifacts/build-info
which is not there yet.The text was updated successfully, but these errors were encountered: