Skip to content

[JRuby] Tests fail with jar-dependencies version mismatch #200

@mkasberg

Description

@mkasberg

Our JRuby tests are failing with this error:

Gem::LoadError: You have already activated jar-dependencies 0.4.1, but your Gemfile requires jar-dependencies 0.4.2. Since jar-dependencies is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports jar-dependencies as a default gem.

Triggered by this command:

bundle exec ruby -Ilib:test -I/home/runner/.rubies/jruby-9.3.4.0/lib/ruby/gems/shared/gems/rake-12.3.3/lib /home/runner/.rubies/jruby-9.3.4.0/lib/ruby/gems/shared/gems/rake-12.3.3/lib/rake/rake_test_loader.rb ./test/backends/backend_memory_test.rb ./test/backends/backend_redis_test.rb ./test/bayes/bayesian_integration_test.rb ./test/bayes/bayesian_memory_test.rb ./test/bayes/bayesian_redis_test.rb ./test/extensions/hasher_test.rb ./test/extensions/matrix_test.rb ./test/extensions/zero_vector_test.rb ./test/lsi/lsi_test.rb ./test/lsi/word_list_test.rb

Though I suspect any bundle command with the BUNDLE_GEMFILE: Gemfile-jruby env variable set would cause this.

Looks to be possibly related to this issue: jruby/jruby#7262

I'm not sure what the right solution is yet but JRuby tests on GitHub Actions will fail in the mean time...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions