X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/44c8f9ed561513b607d3eca752ad3e1efd376f56..373a377022b176e1151108c123ddd08d62861da0:/services/api/Gemfile diff --git a/services/api/Gemfile b/services/api/Gemfile index 473d1e9169..9cc5f1b7bc 100644 --- a/services/api/Gemfile +++ b/services/api/Gemfile @@ -58,28 +58,6 @@ gem 'webrick' gem 'mini_portile2', '~> 2.8', '>= 2.8.1' -# If we're running on Ruby 2.x, we'll go down the `else` branch below. -plugin 'bundler-override' if RUBY_VERSION >= "3.0" -if bundler_override_paths = Bundler::Plugin.index.load_paths("bundler-override") - require File.join(bundler_override_paths[0], "bundler-override") - # Ruby 3.4 drops base64 as a default gem. Because of this, various other gems - # are starting to declare base64 as a dependency. However, locking one - # specific version of base64 makes it more difficult to support older Rubies - # that still have it as a default. See . - # Because we are focused on supporting distros with those older Rubies, we - # drop base64 dependencies here. These overrides can go away once we shift to - # supporting Ruby 3.4+. - override 'faraday', drop: ['base64'] -else - # The plugin is not available, either because Ruby is too old or Bundler - # is installing it this run. That's fine as long as Bundler isn't updating - # Gemfile.lock. Unfortunately we can't know that for sure here, because - # bundler needs to read Gemfile in order to figure out whether it's going - # to update Gemfile.lock. Flagging the situation for the user is the best - # we can do. - Bundler.ui.warn("bundler-override plugin not available - do NOT commit any changes to Gemfile.lock") -end - # Install any plugin gems Dir.glob(File.join(File.dirname(__FILE__), 'lib', '**', "Gemfile")) do |f| eval(IO.read(f), binding)