Join GitHub today
jruby uses absolute pathnames in batch files generated by rubygems #4890
I'm planning to use jekyll running on jruby on Windows and Linux build machines without internet access. Therefore, I "bootstrap" jruby and install the jekyll gem on a machine with internet access first, and then make a tarball that can be then deployed to the build-machines.
This works fine in principle, however the
This will of course fail on the build machines when installed to a different path.
The code that generates the line seems to be here:
Could that be changed to use
jruby 126.96.36.199 (2.3.3) 2017-12-07 929fde8 Java HotSpot(TM) Client VM 25.151-b12 on 1.8.0_151-b12 +jit [mswin32-x86]
That seems like a reasonable change. However we ship an unmodified version of RubyGems, so this isn't a change we'd make in JRuby since it would get wiped out with the first RubyGems update.
I think you should open this with rubygems/rubygems and link to this issue. Once there's released versions of RubyGems with an appropriate fix, we can update and resolve this one.
I'll help make your case if there's any pushback.