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

Bundler .bat is incorrect on Windows after updating rubygems #5632

Open
karlhe opened this Issue Feb 27, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@karlhe
Copy link

karlhe commented Feb 27, 2019

Environment

JRuby: jruby 9.2.6.0 from jruby-dist-9.2.6.0-bin
OS: Windows Server 2012 R2, Windows Server 2016 Datacenter

Expected Behavior

Bundler runs normally

Actual Behavior

Fresh install

C:\jruby-9.2.6.0\bin>gem update --system
C:\jruby-9.2.6.0\bin>gem install bundler
C:\jruby-9.2.6.0\bin>bundle
'"C:\jruby-9.2.6.0\bin\ruby.exe"' is not recognized as an internal or external c
ommand,
operable program or batch file.

Contents of bundle.bat:

@ECHO OFF
@"%~dp0ruby.exe" "%~dpn0" %*

When installing bundler 1.17.3 without updating rubygems:

@ECHO OFF
IF NOT "%~f0" == "~f0" GOTO :WinNT
@"C:\jruby-9.2.6.0\bin\jruby.exe" "C:/jruby-9.2.6.0/bin/bundle" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF
:WinNT
@"C:\jruby-9.2.6.0\bin\jruby.exe" "%~dpn0" %*

Also of note: gem update --system installs bundler 1.17.3 and creates jbundle and jgem binaries, which I'm not sure what the purpose of is.

May well be an issue with rubygems or bundler, but since bundler 2 requires rubygems 3 it's a bit hard to pinpoint...

@headius

This comment has been minimized.

Copy link
Member

headius commented Apr 10, 2019

Sorry for the delay on this one!

Yeah I think this is likely a problem with RubyGems, since the only thing you did to break it was to update RubyGems.

Could you open an issue with RubyGems about this and let us know?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.