Open kamescg opened 2 years ago
What do your remappings, filesystem and deps look like? I'm not sure if this is a problem with the hardhat plugin, foundry/ethers-rs or your config. I was able to use foundry within a monorepo to import other packages in the Optimism monorepo, although we have refactored it to no longer need to import contracts from other packages.
Let me double check all the configurations and I will get back to you. I ran the same smart contract repo outside of the monorepo and it compiled without any of the remapping warnings, so I assume I everything was fine, but I also may have missed something else and I just want to double check before I look foolish ;)
The situation
I have Turborepo + pnpm project setup; a workspaces monorepo with a symlink dependency graph.
When running
hardhat compile
with thefoundry-rs/hardhat-*
plugins installed I get the following mapping errors.This is obviously a problem with my monorepo build system, but just wanted to flag this issue.
Maybe someone has an idea for a good work-around to get
foundry-rs
to work nicely in an NPM workspaces build setup?