joyent/node — Issue #2621: Require & case sensitivity
Author: scriby
Created: 2012-01-26 21:33:55+00:00
State: open

I ran into a weird case when someone included a module I wrote twice. Once using all lower case, and once using camel case. This was on a mac, so the require worked in both cases, but the module ended up actually getting required twice -- and it caused some things to break.

I understand that this issue is a little sticky, as it matters whether you're on a case sensitive or insensitive file system as to what the behavior should be. But, node could take the stance that require is case-insensitive regardless.

Thanks,

Chris