Install RubyGem bundler version specified in Gemfile.lock to fix release failure (#7144) (#7156)

Ref: https://bundler.io/blog/2019/05/14/solutions-for-cant-find-gem-bundler-with-executable-bundle.html
pull/7165/head
Rafi Kamal 5 years ago committed by GitHub
parent 47434eb43d
commit bc237eb672
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      kokoro/release/ruby/linux/ruby/ruby_build_environment.sh

@ -4,5 +4,6 @@ set +ex
[[ -s /etc/profile.d/rvm.sh ]] && . /etc/profile.d/rvm.sh
set -e # rvm commands are very verbose
rvm --default use ruby-2.4.1
gem install bundler --update
# The version needs to be updated if the version specified in Gemfile.lock is changed
gem install bundler -v '1.17.3'
set -ex

Loading…
Cancel
Save