Description
Edit by @fvictorio: Hardhat 2.16.1 should this problem.
Version of Hardhat
2.14.0
What happened?
npx hardhat compile
sometimes goes on with compiling contracts and sometimes (seems totally random) silently stops at the Downloading compiler ...
step before any contracts are actually compiled. This issue is reproducible with no contracts already compiled and in docker.
Minimal reproduction steps
Here's a simple repository where you can observe the problem: repo.
This CI workflow run shows in the logs that the compilation didn't happen: log.
In addition, one can run the docker container in interactive mode and manually run the build
command to see that, again, the command sometimes doesn't build nor throws an error but simply quietly stops without compiling (same output as the CI log above):
- Run the container in interactive mode:
docker run --rm -it ghcr.io/sebastiendan/hardhat-compile-issue:main bash
- Run the compile command:
npm run build
- Observe sometimes an actual compilation, sometimes a quiet stop in the command execution
(run the above multiple times by exiting the container and re-running the two commands above)
Search terms
no compilation
Metadata
Assignees
Type
Projects
Status
Done
Activity