Closed coding-bunny closed 3 years ago
@coding-bunny did you find a solution to this problem? I have the same problem now. I cannot appraisal install
the setup for testing a gem against multiple versions of rails because of that very error.
Not really, just cleaned out all different installations to have the exact same bundler installed so there could be no conflict
Actually, going to reopen this issue:
>> bundle check --gemfile='/home/circleci/acts_as_slugable/gemfiles/rails_3.0.gemfile' || bundle install --gemfile='/home/circleci/acts_as_slugable/gemfiles/rails_3.0.gemfile' --retry 1
Traceback (most recent call last):
2: from /usr/local/bundle/bin/bundle:23:in `<main>'
1: from /usr/local/lib/ruby/site_ruby/2.5.0/rubygems.rb:302:in `activate_bin_path'
/usr/local/lib/ruby/site_ruby/2.5.0/rubygems.rb:283:in `find_spec_for_exe': Could not find 'bundler' (2.1.4) required by `$BUNDLER_VERSION`. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:2.1.4`
Traceback (most recent call last):
2: from /usr/local/bundle/bin/bundle:23:in `<main>'
1: from /usr/local/lib/ruby/site_ruby/2.5.0/rubygems.rb:302:in `activate_bin_path'
/usr/local/lib/ruby/site_ruby/2.5.0/rubygems.rb:283:in `find_spec_for_exe': Could not find 'bundler' (2.1.4) required by `$BUNDLER_VERSION`. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:2.1.4`
This keeps happening on CircleCI when installing gems locally in vendor/bundle
If you install bundler
2.1.4 explicitly, does that solve it?
e.g.: https://github.com/thoughtbot/administrate/blob/master/.circleci/config.yml#L10
I have that line in my circleCI config, and does not solve the problem.
Huh that's fun. Is this the PR you're trying it with? https://github.com/coding-bunny/acts_as_slugable/pull/15
yeah, I can re-add the steps again to have a reproducable case if you want.
Yeah, that'd be handy. Appraisal is a bit difficult to debug!
Steps have been re-added, and since it's a public project I think you should be able to see the output from CircleCI. If you need to me to try stuff or run commands, let me know and I'll provide whatever output you need.
Thanks!
I see you're running on Ruby 2.5, have you tried any other Ruby versions? With some of the recent changes from Bundler 2, I saw similar problems. On Administrate (which is a bit more complex, as we're testing against multiple Ruby versions, but that shouldn't matter for you) I did this:
- image: circleci/ruby:2.5.0-node-browsers
environment:
PGHOST: localhost
PGUSER: administrate
RAILS_ENV: test
BUNDLER_VERSION: 2.1.4
which is now working on the combination of Ruby 2.5 and Bundler 2.
extended the CircleCI Configuration with the multiple rubies as well as the explicit usage of BUNDLER_VERSION
, but same behavior
I've managed to work around the entire problem in https://github.com/coding-bunny/acts_as_slugable/pull/15 Seems Appraisal is working the way I expected it to work now.
Hello,
I'm trying to update a project that runs from Rails 3 -> Rails 6 with appraisal for various setups. When I run any of the appraisal commands, I get the following:
I have both bundler 1.17.3 and 2.1.4 installed, yet appraisal isn't able to select/use the correct bundler version for some reason.