Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Truffle] Requiring paths with . for current directory doesn't work #3079

Closed
chrisseaton opened this issue Jun 23, 2015 · 2 comments
Closed

Comments

@chrisseaton
Copy link
Contributor

$ cat a.rb 
require("./b.rb")
$ cat b.rb 
puts("hi")
$ ruby2.1 a.rb                                                                                
hi
$ ../work/jruby/bin/jruby a.rb 
hi
$ ../work/jruby/bin/jruby -X+T -J-server a.rb 
a.rb:1:in `require': cannot load such file -- ./b.rb (LoadError)
        from a.rb:1:in `<main>'
vext01 added a commit to softdevteam/krun that referenced this issue Jun 23, 2015
@eregon
Copy link
Member

eregon commented Jun 23, 2015

Quick and probably good fix would be to expand relative to CWD if it start with "./".

@eregon eregon closed this as completed in 539baf0 Jul 6, 2015
@eregon
Copy link
Member

eregon commented Jul 6, 2015

Should be good now.

@enebo enebo added this to the JRuby 9.0.0.0.rc2 milestone Jul 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants