Invalid source name
when trying to import openzeppelin inside a monorepo
#4729
-
Goaluse ErrorI have a monorepo, and one of my packages is my evm contracts folder
I want to use
Now, since dependencies for my project are hoisted to the root of the repository, I've set the following foundry configuration: This works and now foundry compiles. However, when I run
DebuggingI tried to debug the resolveSourceName function in
Notably, this fails because validateSourceNameFormat explicitly disallows relative paths QuestionIf relative paths are explicitly disabled, is there another way I can use To be clear, removing Possibly related: #4194 mentioned the remapping not being detected. In my case, it's definitely being detected (but the fact it's being used is breaking things) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thank you @SebastienGllmt, I think this merits being an issue, so I opened #4734 to look into it next time we iterate the hardhat-foundry plugin. |
Beta Was this translation helpful? Give feedback.
Thank you @SebastienGllmt, I think this merits being an issue, so I opened #4734 to look into it next time we iterate the hardhat-foundry plugin.