Skip to content

After run forge flatten command, then I run forge build, it shows: Multiple SPDX license identifiers found in source file.  #3678

@KittyFu307

Description

@KittyFu307

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 (c5791f5 2022-11-11T00:05:26.949466Z)

What command(s) is the bug in?

forge flatten

Operating System

macOS (Apple Silicon)

Describe the bug

Firstly I run the forge flatten --output src/a.sol src/Impl/b.sol to flat my contract.
Then I run forge build.
It will give me an error: ParserError: Multiple SPDX license identifiers found in source file. Use "AND" or "OR" to combine multiple licenses.
截屏2022-11-13 上午11 21 23

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions