Contract name and filename collisions #1488
Labels
C-forge
Command: forge
Cmd-forge-build
Command: forge build
P-normal
Priority: normal
T-bug
Type: bug
Milestone
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (a97090d 2022-05-02T00:04:10.711117948+00:00)
What command(s) is the bug in?
forge build
Operating System
Linux
Describe the bug
File structure:
src/a.sol
src/inner/a.sol
After running
forge build
I have following file structure:The content of out json files corresponds to
inner/a.sol
. No data will be inout
folder for thesrc/a.sol
file.Similar thing happens if
A
insideinner/a.sol
is an interface. This is a bit unusual to define same contracts in files with same names, but may be something like a warning is a good option here.The text was updated successfully, but these errors were encountered: