-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 fails on release command #856
Comments
Thanks a ton for the repro instructions. Very thorough and they were very helpful. Sorry that you've hit this problem. I took a look and it looks like the conflict is with the built-in bundler that comes with ruby 2.6.0. If you move to Ruby 2.5.3 then you can deploy just fine. I'm looking into the root cause now. cc/ @hsbt |
For anyone else this is the full error on release:
|
Deleted my last comment because it was incorrect. It turns out that this is an issue with Ruby 2.6.0 and it has been resolved in 2.6.1. The fix is going to be to move to Ruby 2.6.1. I'll document this in our known issues https://devcenter.heroku.com/articles/bundler-version#known-upgrade-issues Going to close this issue for now. Please upgrade to Ruby 2.6.1. Thanks again for opening the ticket! |
Oh wow. Apologies if the 2.6.0 issue threw you off. Thanks again for your time and effort. |
No apologies needed. It's good to have this documented. People will find this issue and also see our devcenter. I wasn't aware of the issue prior to you reporting it. Thanks for the excellent reproduction. It helped me zero in on the issue very fast. Have a great day! |
@schneems what was the issue with 2.6.0 that was fixed in 2.6.1? ruby/ruby@ad6e91d? couldn't spot anything about bundler at ruby/ruby@v2_6_0...v2_6_1 |
I'm honestly not sure. This commit touches rubygems though, ruby/ruby@ad6e91d. |
For the sake of completeness, I wanted to mention that this third party "bundler 2" buildpack fails with Ruby 2.6.0 as well https://github.com/bundler/heroku-buildpack-bundler2 |
Not sure use of bundler 2.0.1 with ruby 2.6.1 is working yet. I've just deployed a pure ruby heroku app thats run as a scheduled job. Am seeing "You must use Bundler 2 or greater with this lockfile" when the scheduled job runs. Full stacktrace below. The job runs fine on my local dev box, as long as I run beforehand: "gem update --system --no-document"
|
@greghuc please open a support ticket so I can take a look at your app. I can't do much without a reproduction.
That sounds like a rubygems issue. We are pegged to the specific version of rubygems that ships with Ruby and Ruby 2.6.1 ships with rubygems 3.0.1. The latest release is 3.0.2. Likely when Ruby 2.6.2 ships it will get the latest rubygems version. Either way i've had a number of people report that the specific error encountered on this issue is fixed when upgrading to Ruby 2.6.1, so what you're seeing is likely a different issue. Please open a support ticket, go to help.heroku.com search for "You must use Bundler 2 or greater with this lockfile" then open a ticket. It's odd that the only the job task fails and nothing else, i'm guessing the issue is either due to use or lack of |
@schneems ok, will open support ticket, but will be early next week. |
Wanted to leave some more notes. Failing in Release mode even with Ruby 2.6.1If the build succeeds but release phase (or booting) fails the issue is that There's two ways to fix this.
Even when spring is not present on the system, this code does something that allows bundler to initialize correctly that doesn't happen when you comment this code out. Ruby version in PathIf you're seeing
This output is due to legacy reasons. I've opened a ticket to track the possibility of changing the value #857. |
Reported the issue to Ruby core in https://bugs.ruby-lang.org/issues/15622 |
This is a duplicate of a issue on the bundler fork of this buildpack.
rubygems#5
Now you've released buildpack v199
which included this attempt to fix the issue
#850
however, it seems to still be broken.
Symptom is:
You must use Bundler 2 or greater with this lockfile.
Steps to recreate:
Here's a gist of the error in action
https://gist.github.com/matthewrudy/a12772acd14418d70fbc6271dcb7c8ef
The text was updated successfully, but these errors were encountered: