-
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
Bug: Forge flatten does handle multiple differing SPDX licenses #2344
Comments
@rkrasiuk this looks like an issue with how we track different licenses, can't remember how flatten behaves when that happens |
@mattsse they should be stripped, |
@mattsse one thing that comes to mind is that our rule for detecting the license identifier is quite strict. we require it to be on the first line of any file. perhaps it's not the case in one of your source files @sambacha? |
For flattened files i think this rule is wrong |
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (3c49efe 2022-07-14T00:05:10.018576Z)
What command(s) is the bug in?
forge build
Operating System
macOS (Intel)
Describe the bug
I run
contracts, 1, 2, 3, get flattened into 4.sol
Then when I run build I get this:
Also I get this error message three times?
The text was updated successfully, but these errors were encountered: