foundry
foundry copied to clipboard
bug(`config`): file paths not resolved if submodule specifies root path remappings
Component
Forge
Describe the feature you would like
Steps to reproduce:
- Clone this repo and run
forge install
- Run
forge build
, it fails with the below error - In
lib/forge-test-my-dep
, openfoundry.toml
and comment out the remappings - Run
forge build
, it passes
[⠊] Compiling...
Error:
Failed to resolve file: "/Users/mds/Documents/projects/forge-test-my-proj/lib/forge-test-my-dep/script/BaseScript.sol": No such file or directory (os error 2).
--> "/Users/mds/Documents/projects/forge-test-my-proj/script/Counter.s.sol"
"script/BaseScript.sol"
Check configured remappings.
Additional context
No response