crytic-compile icon indicating copy to clipboard operation
crytic-compile copied to clipboard

crytic-compile hangs if truffle version does not exactly match that in `package.json`

Open hacker-DOM opened this issue 4 years ago • 1 comments

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 [email protected].

CC wants to run npx [email protected] compile --all. Running that command stand-alone will result in:

Need to install the following packages:
  [email protected]
Ok to proceed? (y)

however, running CC will just hang.

hacker-DOM avatar Aug 12 '21 10:08 hacker-DOM

What version of npx/node are you using? Did you change any of the default configuration?

I don't have this confirmation (Ok to proceed? (y)) needed in my local tests

montyly avatar Aug 12 '21 11:08 montyly