You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure yet whether this is an issue with JRuby, Bundler or RubyGems, but I've so far only encountered the problem with JRuby.
With a clean install of JRuby 9.1.15.0 and a Gemfile containing gem "minitest", "5.11.3", Bundler will activate the minitest 5.11.3 gem as expected. After upgrading to RubyGems 2.7.5, Bundler incorrectly activates the built-in version of minitest from stdlib instead.
With a clean JRuby 9.1.15.0 install:
$ uname -a
Linux linuxdev 4.10.0-42-generic #46-Ubuntu SMP Mon Dec 4 14:38:01 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
$ jruby -v
jruby 9.1.15.0 (2.3.3) 2017-12-07 929fde8 OpenJDK 64-Bit Server VM 25.151-b12 on 1.8.0_151-8u151-b12-0ubuntu0.17.04.2-b12 +jit [linux-x86_64]
$ gem --version
2.6.14
Re-run the test. This now (incorrectly) outputs the version of the built-in version of minitest (5.4.1). The stdlib directory is now ahead of the minitest gem in the load path.
This is a workaround for the test failures in
https://travis-ci.org/tzinfo/tzinfo/jobs/339829912
The underlying issue was an old built-in version of minitest being
loaded instead of the bundled gem (see
jruby/jruby#5038).
Revert c7958d9 and rearrange the load
path if the stdlib directory appears before the minitest gem.
Hmm, have you filed this with RubyGems? Given that JRuby doesn't change at all and it stops working, I'd strongly lean toward this being their issue. They have broken this sort of searching before, too.
Ok, we'll call this Invalid for now. If there's something we're doing wrong, let us know and we'll reopen it (and maybe ping us through other channels too).
I'm not sure yet whether this is an issue with JRuby, Bundler or RubyGems, but I've so far only encountered the problem with JRuby.
With a clean install of JRuby 9.1.15.0 and a
Gemfile
containinggem "minitest", "5.11.3"
, Bundler will activate the minitest 5.11.3 gem as expected. After upgrading to RubyGems 2.7.5, Bundler incorrectly activates the built-in version of minitest from stdlib instead.With a clean JRuby 9.1.15.0 install:
Install bundler 1.16.1:
Create and switch to a directory for testing:
Create a Gemfile, add minitest 5.11.3 and install:
Run a test to confirm that the correct version of minitest gets loaded (5.11.3) and that the load path is ordered appropriately:
Upgrade to RubyGems 2.7.5:
Re-run the test. This now (incorrectly) outputs the version of the built-in version of minitest (5.4.1). The stdlib directory is now ahead of the minitest gem in the load path.
The text was updated successfully, but these errors were encountered: