Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Require paths with .. in them are not normalized #575
This requires 3 files to reproduce:
In Ruby 1.9 and 2.0, running a.rb prints "ok" to the terminal:
In JRuby, I get a LoadError instead:
It seems to be an issue with b.rb getting FILE as "./b.rb", which then doesn't canonicalize right with the .. in there. If you run b.rb directly or require it from a.rb without using ./, it works ok.
I'm looking into why we're presenting FILE as the relative version; it should be the canonical path, I believe.