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

lewagon/wait-on-check-action fails to run due since Bundler 2.5.0 dropped support for Ruby 2.7. #98

Closed
neilferreira opened this issue Dec 19, 2023 · 0 comments

Comments

@neilferreira
Copy link

neilferreira commented Dec 19, 2023

Using this workflow in GitHub actions no longer works as intended. The Dockerfile performs a gem install bundler without specifying a version of it. Bundler 2.5.0 was released over the weekend and dropped support for Ruby 2.7.

To reproduce:

git clone git@github.com:lewagon/wait-on-check-action.git
cd wait-on-check-action/
docker build .

Fails with:

 => ERROR [base 5/9] RUN gem install bundler                                                                                               
------
 > [base 5/9] RUN gem install bundler:
47.06 ERROR:  Error installing bundler:
47.06 	The last version of bundler (>= 0) to support your Ruby & RubyGems was 2.4.22. Try installing it with `gem install bundler -v 2.4.22`
47.06 	bundler requires Ruby version >= 3.0.0. The current ruby version is 2.7.2.137.
------
Dockerfile:7
--------------------
   5 |     COPY Gemfile Gemfile
   6 |     COPY Gemfile.lock Gemfile.lock
   7 | >>> RUN gem install bundler
   8 |     RUN bundle config set with 'development test'
   9 |     RUN bundle install --jobs 20 --retry 5
--------------------

To fix:

Use this command instead in the Dockerfile:

gem install bundler -v 2.4.22
@neilferreira neilferreira changed the title lewagon/wait-on-check-action fails to run due to an issue with the Dockerfile lewagon/wait-on-check-action fails to run due since Bundler 2.5.0 dropped support for Ruby 2.7. Dec 19, 2023
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

1 participant