crytic / crytic/crytic-compile
crytic-compile hangs if truffle version does not exactly match that in `package.json`
Open
- Dominant language
- Python
- Stars
- 197
- Forks
- 97
- PR merge metrics
- No merged PRs in 30d
Description
Currently, crytic-compile forces to use exactly the truffle version as in package.json:
https://github.com/crytic/crytic-compile/blob/372aa5120e59325ef3740690485e654382e29d71/crytic_compile/platform/truffle.py#L118-L127
However, when a dependency as such is specified:
```
"truffle": "^5.1.51",
```
npm will install the latest matching minor version, currently `truffle@5.4.2`.
CC wants to run `npx truffle@5.1.51 compile --all`. Running that command stand-alone will result in:
```
Need to install the following packages:
truffle@5.1.51
Ok to proceed? (y)
```
however, running CC will just hang.
Contributor guide
Assessment
This issue has not been assessed yet.