foundry icon indicating copy to clipboard operation
foundry copied to clipboard

bug(`config`): file paths not resolved if submodule specifies root path remappings

Open mds1 opened this issue 2 years ago • 24 comments

Component

Forge

Describe the feature you would like

Steps to reproduce:

  1. Clone this repo and run forge install
  2. Run forge build, it fails with the below error
  3. In lib/forge-test-my-dep, open foundry.toml and comment out the remappings
  4. 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

mds1 avatar Oct 03 '22 17:10 mds1