Closed zaqk closed 1 week ago
ref #1855
While using prb-proxy which has "src/=src/" in remappings.txt:
PRBProxy no longer has that remapping on the main
branch, see https://github.com/PaulRBerg/prb-proxy/commit/8a8f86e46a97d7cd1e7a8f93fc68468748bad1ff.
Thanks @PaulRBerg
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (1d9a34e 2023-03-07T00:07:40.652148Z)
What command(s) is the bug in?
forge build
Operating System
macOS (Apple Silicon)
Describe the bug
It seems that foundry dependency remappings will affect the parent project that is using the dependencies.
While using prb-proxy which has "src/=src/" in remappings.txt: https://github.com/PaulRBerg/prb-proxy/blob/198fca1b8799f67457abce2bdb82361525af5912/remappings.txt#L5
I am forced to override this remapping in my own remappings.txt otherwise all imports even relative imports that touch the src folder will point to prb-proxy/src.
For example, if i have a file
my-project/src/interfaces/X.sol
which is inherited via relative import it will point tomy-project/lib/prb-proxy/src/interfaces/X.sol
instead.