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

Bundler 2.5.6 Causes Builds to Fail #1430

Closed
OlekKovalevych opened this issue Feb 29, 2024 · 10 comments
Closed

Bundler 2.5.6 Causes Builds to Fail #1430

OlekKovalevych opened this issue Feb 29, 2024 · 10 comments

Comments

@OlekKovalevych
Copy link

build pack version https://github.com/heroku/heroku-buildpack-ruby/tree/main/changelogs/v267
ruby version: 2.7.2p137

 Building on the Heroku-20 stack
remote: -----> Using buildpacks:
remote:        1. heroku/ruby
remote:        2. heroku/nodejs
remote: -----> Ruby app detected
remote: -----> Installing bundler 2.4.22
remote: -----> Removing BUNDLED WITH version in the Gemfile.lock
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.7.2
remote: -----> Installing dependencies using bundler 2.4.22
remote:        Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4

exception:

remote:        Fetching gem metadata from https://rubygems.org/.........
remote:        bundler-2.5.6 requires ruby version >= 3.0.0, which is incompatible with the
remote:        current version, 2.7.2
remote:        Bundler Output: Fetching gem metadata from https://rubygems.org/.........
remote:        bundler-2.5.6 requires ruby version >= 3.0.0, which is incompatible with the
remote:        current version, 2.7.2
remote:  !
remote:  !     Failed to install gems via Bundler.
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.
remote: 
remote:  !     Push failed

bundler versions on heroku:
image

@joshreeves
Copy link

Having the same (or similar) issues with v267 build pack. We had to lock our apps to version 266 to be able to deploy.

@OlekKovalevych
Copy link
Author

After switching the version to 266, the problem still persists
image
exception:
image

@edmorley
Copy link
Member

edmorley commented Mar 1, 2024

@schneems ^

@Swastik-T
Copy link

@OlekKovalevych Did you find any solution to this?

@OlekKovalevych
Copy link
Author

@Swastik-T IMO, at the moment there is only one possible solution - to update version of ruby. But I prefer to stay with my current version of ruby(2.7.2).

@supra-man
Copy link

@OlekKovalevych @Swastik-T @joshreeves
I was able to fix this issue by clearing heroku app cache
heroku plugins:install heroku-repo
heroku repo:purge_cache -a your-app-name

@Swastik-T
Copy link

Swastik-T commented Mar 1, 2024

@supra-man Thanks, man. It worked for me. They should put this in their article.

Clearing cache worked me for the v267 too.

@OlekKovalevych
Copy link
Author

@supra-man Thank you a lot! Clearing the cache for me.( also worked for v267 ruby buildpack)

@OlekKovalevych
Copy link
Author

Since the problem is solved, I will move issue to a closed one.

@latortuga
Copy link

This fix should be included in the changelog because it seems like the changes in #1428 caused this.

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

6 participants