Bundler fails on Dir.chdir when running inside jar on JRuby #1865
Comments
+1 |
2 similar comments
+1 |
+1 |
+1 any fix on this? |
I don't use JRuby, and I honestly have no idea how to reproduce this, let alone fix it. If you want a fix, please either write one or provide detailed reproduction steps that mean even someone who doesn't use JRuby (like me) can reproduce the problem. The list in ISSUES might help, if you're not sure what to include. |
+1 |
I'have a similar error, anyone have suggestions? |
@prandazzo please see my last comment. |
Just ran into this, too. @indirect the scenario is a jruby application that has been packaged up as a jar file (e.g. with warbler). It seems to me that bundler tries to Running on jruby within a jar this will fail:
I'm not sure if that's not a jruby bug? |
@svenfuchs I guess Bundler could fall back to evaluating the gemspec without changing the current directory if the gemspec isn't in a directory? Would that solve this? |
Hi, it's not a jruby bug. I think would be possible to "simulate" chdir in jar file by redefining File class.. but it's very tricky. |
Bundler 1.1.3 fails when running from inside a packaged jar file, on JRuby. It tries to execute Dir.chdir (Line 273 in bundler.rb), but because that's not a real directory on disk, only inside the JAR file, the OS call to move to that dir fails.
Is there another approach to this that would work inside a JAR?
The text was updated successfully, but these errors were encountered: