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
Logstash artifacts contain both a jruby interpreter as well as a gem environment including dependencies and plugin gems. The gem environment is managed via bundler. Jruby ships with a collection of "default" gems https://github.com/jruby/jruby/blob/master/lib/pom.rb just like MRI ruby. When a gemspec contains an explicit dependency on a default gem, bundler will try to fetch the latest version from rubygems. In the case where there is a newer version than the default shipped with jruby an ambiguous gem loading warning will be surfaced.
The interim solution for resolving these issues has been to explicitly pin gems to the version shipped in jruby #16755
This solution requires manual intervention and is prone to missing required updates. We should build a better solution for resolving conflicts between gems managed with bundler and those shipped with jruby.
Desired outcomes
At minimum we should automate at least checking for conflicts periodically.
Come up with a solution for managing this, if it is just pinning explicitly come up with a way to automate that workflow
Another thing to consider may be something like:
# Force bundler to prefer gems from rubygems.org over default gemssource"file://#{JRUBY_DIR}/lib/ruby/gems/shared"dogem'date','3.3.3'end
The text was updated successfully, but these errors were encountered:
Logstash artifacts contain both a jruby interpreter as well as a gem environment including dependencies and plugin gems. The gem environment is managed via bundler. Jruby ships with a collection of "default" gems https://github.com/jruby/jruby/blob/master/lib/pom.rb just like MRI ruby. When a gemspec contains an explicit dependency on a default gem, bundler will try to fetch the latest version from rubygems. In the case where there is a newer version than the default shipped with jruby an ambiguous gem loading warning will be surfaced.
Examples:
bin/logstash
will produce aGem::Specification.reset
warning on startup #16754The interim solution for resolving these issues has been to explicitly pin gems to the version shipped in jruby #16755
This solution requires manual intervention and is prone to missing required updates. We should build a better solution for resolving conflicts between gems managed with bundler and those shipped with jruby.
Desired outcomes
Another thing to consider may be something like:
The text was updated successfully, but these errors were encountered: