Closed barlock closed 5 years ago
https://github.com/barlock/web3studio-bootleg/commit/3e3a9828ebd10e3c15a590daa047fb3450f7f7cd seems to indicate that your truffle config is in a weird place relative to where your node_modulies is located. If you change the "truffle run verify" to "truffle compile" does that compile? See https://github.com/barlock/web3studio-bootleg/commit/3e3a9828ebd10e3c15a590daa047fb3450f7f7cd#r32927634
Yes, truffle-compile
runs fine. My node_modules are hoisted to the top of the monorepo.
If I can beg your indulgence a little more, could you try with the master branch now? Recently https://github.com/ConsenSys/truffle-security/pull/149 was merged and there is a small chance that addresses this (or moves things forward). Thanks.
I can confirm that just like @barlock I have the same issue with contracts that import other contracts from node_modules
(specifically, from openzeppelin-solidity
).
Same behaviour when installing from npm (version 1.3.1) and when pulling from master and npm link
-ing the plugin on my local machine.
Sorry for the slow responses. Yes, using the master branch resolves this issue 🎉
Do you have an idea for when the next release might be?
@barlock The next release will be today or tomorrow. :tada:
As master currently resolves this, I will be closing this issue. If anything comes up, please reopen it or create a new issue.
I tried installing
truffle-security
into my project and it's having a hard time compiling my contracts.Might be possible that the
compat
version of truffle-compile is out of date?Steps to Reproduce Clone https://github.com/barlock/web3studio-bootleg/tree/truffle-security (Specifically the
truffle-security
branch)Error
Details A normal
truffle compile
runs just fine. (in the root packageyarn lerna run build
).There are 3 packages with contracts
bootleg-tokens
,bootleg-app-contracts
andexamples
.examples
is the only one that has no issues, but it's also a very simple MetaCoin example.Example is a monorepo using
lerna
and yarn workspaces so node_modules have been symlinked in some places and there located two dirs out from where the code is running.