I've been using this action for a bit to test a gem for all ruby versions from 2.3 - 2.7. CI hadn't run on it for about a month, and I see now that the behavior of which bundler version is installed by default has changed. I am hitting this error on the ruby 2.3 tests with the latest version of this action which I did not with previous versions:
Run bundle exec rake spec
rake aborted!
LoadError: cannot load such file -- bundler/gem_tasks
/home/runner/work/str_metrics/str_metrics/Rakefile:3:in `require'
/home/runner/work/str_metrics/str_metrics/Rakefile:3:in `<top (required)>'
/home/runner/work/str_metrics/str_metrics/vendor/bundle/ruby/2.3.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
/home/runner/.rubies/ruby-2.3.8/bin/bundle:22:in `load'
/home/runner/.rubies/ruby-2.3.8/bin/bundle:22:in `<main>'
(See full trace by running task with --trace)
##[error]Process completed with exit code 1.
I am guessing it's to do with the action now by default installing bundler 2 where it was installing bundler 1 for older rubies before? Has anyone encountered this? Any pointers/ideas on how to fix would be greatly appreciated! Thank you.
EDIT: I figured out that if I add a gem update --system before my bundle install step, everything seems to run OK. This somehow implies a too old version of rubygems? I saw this after installing ruby2.3 using this action:
gem -v
> 2.5.2.3
gem update --system
gem -v
> 3.1.2
According to https://github.com/rubygems/rubygems#requirements rubygems 3 supports ruby 2.3 and greater. Is there any reason to not use rubygems 3 for my usecase where I'm only supporting rubies greater than 2.3, jruby & truffleruby? I've for now just added a gem update --system to my workflow to workaround this.
I've been using this action for a bit to test a gem for all ruby versions from 2.3 - 2.7. CI hadn't run on it for about a month, and I see now that the behavior of which bundler version is installed by default has changed. I am hitting this error on the ruby 2.3 tests with the latest version of this action which I did not with previous versions:
I am guessing it's to do with the action now by default installing bundler 2 where it was installing bundler 1 for older rubies before? Has anyone encountered this? Any pointers/ideas on how to fix would be greatly appreciated! Thank you.
EDIT: I figured out that if I add a
gem update --systembefore mybundle installstep, everything seems to run OK. This somehow implies a too old version of rubygems? I saw this after installing ruby2.3 using this action:According to https://github.com/rubygems/rubygems#requirements rubygems 3 supports ruby 2.3 and greater. Is there any reason to not use rubygems 3 for my usecase where I'm only supporting rubies greater than 2.3, jruby & truffleruby? I've for now just added a
gem update --systemto my workflow to workaround this.