Pin a bunch of gems so that centos 7 with old ruby still works

https://zuul.opendev.org/t/openstack/build/4523d241081f40da9c39c0a7894f5e4d/log/job-output.txt
shows the error:
centos-7 | Resolving dependencies..........
centos-7 | RubyGems 2.0.14.1 is not threadsafe, so your gems will be installed one at a time. Upgrade to RubyGems 2.1.0 or higher to enable parallel gem installation.
centos-7 | Fetching rake 13.0.0
centos-7 | Installing rake 13.0.0
centos-7 | Gem::InstallError: rake requires Ruby version >= 2.2.
centos-7 | An error occurred while installing rake (13.0.0), and Bundler cannot continue.
centos-7 | Make sure that `gem install rake -v '13.0.0' --source 'https://rubygems.org/'`
centos-7 | succeeds before bundling.
centos-7 |
centos-7 | In Gemfile:
centos-7 |   rspec-puppet-utils was resolved to 3.4.0, which depends on
centos-7 |     puppetlabs_spec_helper was resolved to 1.1.1, which depends on
centos-7 |       puppet-syntax was resolved to 2.6.0, which depends on
centos-7 |         rake
centos-7 | bundler: command not found: rake

Let's pin rake for now and let's also pin dry-inflector to 0.1.2 as the
0.2.0 version has the exact same issue as rake >= 13. Same goes for the
signet gem and minitest

Change-Id: I14ecd55adfbc5bfcf4bd8e6504be29f48d233f45
This commit is contained in:
Michele Baldessari 2019-11-08 11:34:58 +01:00
parent 018023ab72
commit 0ebd0344a7
1 changed files with 4 additions and 1 deletions

View File

@ -14,7 +14,10 @@ group :test do
gem 'net-telnet', '~> 0.1.1', :require => false
gem 'jwt', '~> 1.5.6', :require => false
gem 'nokogiri', '~> 1.6.0', :require => false
gem 'rake', :require => false
gem 'rake', '< 13.0.0', :require => false
gem 'dry-inflector', '~> 0.1.2', :require => false
gem 'signet', '~> 0.11.0', :require => false
gem 'minitest', '~> 5.11.3', :require => false
gem 'rspec-puppet', :require => false
gem 'puppet-lint', '~> 1.1.0', :require => false
gem 'metadata-json-lint', :require => false