The filesystem is case preserving.<p><a href="http://www.informit.com/articles/article.aspx?p=1144082&seqNum=4" rel="nofollow">http://www.informit.com/articles/article.aspx?p=1144082&seqN...</a>
It’s not just macOS, Windows has the same, with all the same associated problems.<p>For that reason, I generally prefer to keep all file names consistently lower-case - user_account.ex over UserAccount.ex. It’s just as easy to read, if not more so.<p>We have enough other things to worry about as programmers without having to think about correct capitalisation of file names.
I think it also teaches that Postel’s robustness principle isn’t always a good thing.<p>If the MacOS filesystem was not case-insensitive, i.e. it was _less_ liberal with what it accepted, the reported issue wouldn’t have happened.
Ran into this issue with CI and git. Was so difficult to track down. Now all Macs on my team are reformatted to be case sensitive because of this. Thankfully it's an option now.