Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find executable appraisal for gem appraisal #210

Closed
evbuk1 opened this issue Mar 8, 2023 · 4 comments
Closed

Can't find executable appraisal for gem appraisal #210

evbuk1 opened this issue Mar 8, 2023 · 4 comments

Comments

@evbuk1
Copy link

evbuk1 commented Mar 8, 2023

When I run

bundle exec appraisal install

I receive the following error:

Traceback (most recent call last):
        4: from /usr/share/rvm/gems/ruby-2.7.4/bin/ruby_executable_hooks:22:in `<main>'
        3: from /usr/share/rvm/gems/ruby-2.7.4/bin/ruby_executable_hooks:22:in `eval'
        2: from /usr/share/rvm/gems/ruby-2.7.4/bin/appraisal:23:in `<main>'
        1: from /usr/share/rvm/rubies/ruby-2.7.4/lib/ruby/2.7.0/bundler/rubygems_integration.rb:402:in `block in replace_bin_path'
/usr/share/rvm/rubies/ruby-2.7.4/lib/ruby/2.7.0/bundler/rubygems_integration.rb:374:in `block in replace_bin_path': can't find executable appraisal for gem appraisal (Gem::Exception)

My appraisal file looks as follows:

if RUBY_VERSION < '1.9'
  appraise 'activerecord_2_2' do
    gem 'activerecord', '~> 2.2.0'
    gem 'factory_girl', '~> 2.3.0'
    gem 'rake', '~> 0.8.7'
  end
end

appraise 'activerecord_2_3' do
  gem 'activerecord', '~> 2.3.0'
end

appraise 'activerecord_3_0' do
  gem 'activerecord', '~> 3.0.0'
end

appraise 'activerecord_3_1' do
  gem 'activerecord', '~> 3.1.0'
end

appraise 'activerecord_3_2' do
  gem 'activerecord', '~> 3.2.0'
end

if RUBY_VERSION >= '1.9'
  appraise 'activerecord_4_0' do
    gem 'activerecord', '~> 4.0.0'
    gem 'mysql', '~> 2.9.0' if ENV['DB'] == 'mysql'
    gem 'protected_attributes', '~> 1.0.0'
  end

  appraise 'activerecord_4_1' do
    gem 'activerecord', '~> 4.1.0'
    gem 'mysql', '~> 2.9.0' if ENV['DB'] == 'mysql'
    gem 'protected_attributes', '~> 1.0.0'
  end
end

This is an old project that I am updating but I don't have an idea about the error above. Can someone point me in the right direction please?

@nickcharlton
Copy link
Member

Which version of bundler are you using?

What do you get if you install Appraisal from main? We might've fixed it by now, but it's hard to tell!

y-yagi added a commit to y-yagi/config that referenced this issue May 24, 2023
I assume the released appraisal has a problem with the latest bundler.
Ref: thoughtbot/appraisal#210
y-yagi added a commit to y-yagi/config that referenced this issue May 24, 2023
I assume the released appraisal has a problem with the latest bundler.
Ref: thoughtbot/appraisal#210
y-yagi added a commit to y-yagi/config that referenced this issue May 24, 2023
I assume the released appraisal has a problem with the latest bundler.
Ref: thoughtbot/appraisal#210
@y-yagi
Copy link

y-yagi commented May 25, 2023

@nickcharlton

Hello. I probably meet the same issue.
The error is here: https://github.com/rubyconfig/config/actions/runs/5068465025/jobs/9100817130

The bundler version is 2.4.1.

I tried to install appraisal from main and it works well.
So I think the issue is already fixed in main. Do you have a plan to release the new version of gem?

@pkuczynski
Copy link

@nickcharlton seems that @y-yagi is correct and it works from main. We would appreciate a release of a new version of the gem...

@nickcharlton
Copy link
Member

Ah hah, okay cool. I'm looking at doing a new release today/tomorrow so that's good.

Thanks everyone for the reports and input here!

y-yagi added a commit to y-yagi/shoulda-matchers that referenced this issue Oct 10, 2023
I tried to run specs on my local, but didn't work.
It seems that ``appraisal` v2.4 has a problmen with latest bundler.
So I would like to update to the V2.5.

Ref: thoughtbot/appraisal#210 (comment)
y-yagi added a commit to y-yagi/shoulda-matchers that referenced this issue Oct 10, 2023
I tried to run specs on my local, but it didn't work.
It seems that `appraisal` v2.4 has a problem with the latest bundler.
So I would like to update to the V2.5.

Ref: thoughtbot/appraisal#210 (comment)
vsppedro pushed a commit to thoughtbot/shoulda-matchers that referenced this issue Oct 11, 2023
I tried to run specs on my local, but it didn't work.
It seems that `appraisal` v2.4 has a problem with the latest bundler.
So I would like to update to the V2.5.

Ref: thoughtbot/appraisal#210 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants