Skip to content

Bump version of bundler to match the shipped one

Balasankar 'Balu' C requested to merge bump-bundler-version into master

We are shpping bundler version 1.13.7 in our package (via software definitions). As part of https://gitlab.com/gitlab-org/build/team-tasks/issues/86 , we need to install and configure GitLab using a rake task. However, the reconfigure script does database migration, which uses gitlab-rake, which uses the bundled bundler, which is of version 1.13.7. However, the bundle used for the original rake task is the one we have in builder image, which is of version 1.13.6. So, there is a conflict on the versions of bundler , which causes error like the following

Recipe: gitlab::database_migrations
  * bash[migrate gitlab-rails database] action run
    [execute] bundler: failed to load command: rake (/opt/gitlab/embedded/bin/rake)
              Gem::LoadError: You have already activated bundler 1.13.7, but your Gemfile requires bundler 1.13.6. Prepending `bundle exec` to your command may solve this.
                /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:40:in `block in setup'
                /opt/gitlab/embedded/lib/ruby/2.3.0/forwardable.rb:204:in `each'
                /opt/gitlab/embedded/lib/ruby/2.3.0/forwardable.rb:204:in `each'
                /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:25:in `map'
                /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:25:in `setup'
                /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler.rb:99:in `setup'
                /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/setup.rb:20:in `<top (required)>'
                /opt/gitlab/embedded/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
                /opt/gitlab/embedded/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'

Merge request reports