Skip to content

Drop Bundler version installation

Stan Hu requested to merge sh-drop-bundler-version into master

We no longer to need to specify a specific version of Bundler for a number of reasons:

  1. Starting with Bundler v2.3, Bundler automatically installs the version needed in Gemfile.lock if it's not installed already: https://bundler.io/blog/2022/01/23/bundler-v2-3.html.

  2. Most of the time GitLab Rails and other projects update Gemfile.lock with a recent Bundler version, so the build images will usually be out of date anyway.

  3. We've already crossed the Bundler v2.3 mark: Ruby 3.1.4 ships with Bundler v2.3.27, and Ruby 3.2.4 ships with Bundler v2.4.19.

We dropped the Bundler software definition in Omnibus in omnibus-gitlab!6849 (merged), so it's time to do it here too.

This will eliminate the headaches we've had defining BUNDLER_VERSION in our CI pipeline images.

Relates to omnibus-gitlab#8368 (comment 1941438315)

After this MR, we'll no longer publish images with Bundler versions. All projects using images that include Bundler should be updated:

Edited by Rémy Coutable

Merge request reports