Browse Source

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
Rafi Kamal 5 years ago
parent
commit
bc237eb672
1 changed files with 2 additions and 1 deletions
  1. 2 1
      kokoro/release/ruby/linux/ruby/ruby_build_environment.sh

+ 2 - 1
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
 [[ -s /etc/profile.d/rvm.sh ]] && . /etc/profile.d/rvm.sh
 set -e  # rvm commands are very verbose
 set -e  # rvm commands are very verbose
 rvm --default use ruby-2.4.1
 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
 set -ex