Behavior when importing files with wrong capitalization is confusing across OSes #4003
Closed
2 tasks done
Labels
T-bug
Type: bug
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (848bb44 2022-12-28T00:13:43.163127Z)
What command(s) is the bug in?
forge build
Operating System
Linux
Describe the bug
On OSX, forge does not seem to care too much about the capitalization of import file names. For example this:
Works perfectly fine on a Mac even tho it should be
Test.sol
, while in CI it will yield this message:This error message had me pretty confused for a while (it's only off by 2 characters), esp since it worked on Mac.
The error message isn't necessarily at fault, but this whole flow was a little confusing to debug for multiple reasons. I'd argue it's a small footgun that it wouldn't hurt to mitigate somehow, maybe by:
or
and/or
The text was updated successfully, but these errors were encountered: