Skip to content

Forge remappings output wrong with multiple remappings.txt on dependencies. #6431

@rizary

Description

@rizary

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

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:

$ forge install ProjectOpenSea/seadrop

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).

image

What I notice is this:

  1. In the seadrop's remappings.txt, the openzeppelin-contracts remapped to openzeppelin-contracts/contracts
  2. but in the forge remappings output, the /contracts was missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Next Up

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions