-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forge remappings output wrong with multiple remappings.txt on dependencies. #6431
Comments
can you please add your remappings as text |
@mattsse I have put |
Can you please attach its content as text? |
remappings.txt here's my project's remappings.txt the seadrop's one can be found at their repo. |
@mattsse have you been able to reproduce this? |
Hi @Rizary I've been able to reproduce your report
As example, following your setup:
With remappings:
It looks like the linker gets confused when encountering this remapping, perhaps this is an area of improvement (cc @klkvr) we could look into. For now it is quite easy to work around. |
cc @grandizzy added a repro here: https://github.com/zerosnacks/foundry-bug-6431-repro, issue with automatic remappings remains after latest fixes |
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (33f3fee 2023-05-27T00:03:28.386134290Z)
What command(s) is the bug in?
forge flatten -C src -o src/flatten/1.0/MyContract.sol src/1.0/MyContract.sol
Operating System
Linux
Describe the bug
Here's what I run:
then I put
remappings.txt
in my root project as shown on the pic (right side), the other one is from opensea's drop repo (I create another issue see the left side of the pic).What I notice is this:
openzeppelin-contracts
remapped toopenzeppelin-contracts/contracts
forge remappings
output, the/contracts
was missing.The text was updated successfully, but these errors were encountered: