I\'m working with heroku and every time I try to push my app this message shows out:
remote: Compressing source files... done.
remote: Building source:
remo
Yup, so generally uninstalling your version of bundler, removing the gemfile.lock, and finally running gem install bundler -v 1.15.2
(which is the version heroku is using) worked.
After that running git push heroku master
worked!
I got the same problem for Ruby 2.6.3, nothing listed in answers could help. The only the following solution worked for me:
bundle update rails
Remove Gemfile.lock
bundle
Using bundler 2.0.1 allows for automatic version switching as required by the lock file. In this regard, installing bundler 2.0.1 worked for me.
Installing bundler 2.0.1
gem install bundler -v 2.0.1
Update bundler
bundle update -bundler
I had the same problem today.
In my case the problem was caused by using rvm gemset other than latest I have with ruby 2.7.1 and bundler 2.1.4 (same bundle Gemfile was locked with).
So just take a look at your rvm environment before doing any other solution listed here. Specially if you're running your project on production.
Happy hacks !
A bit late to the party but I just ran into this today as well, and this solution avoids having to uninstall Bundler: just run
heroku buildpacks:set https://github.com/bundler/heroku-buildpack-bundler2
as per discussion on the Bundler issue here.
For people who are not using Heroku:
I Tried everything and I was still receiving this error. even this link didn't help me: https://github.com/jekyll/jekyll/issues/7463
So this was my solution:
Push your code on GitHub. delete project folder create a new folder and pull your code bundle install That's it. bundler update --bundler was not helping me at the end and I didn't use it.
One more important thing:
I updated my ruby version but I was getting this error because my RVM default version was an old version.
even when you use rvm use VERSION_NUMBER -- default
will not help because as soon as you log out from terminal the default version will change to the old one and you will have the same issue.
For this you can use this answer: How to set default Ruby version with RVM?
or just uninstall old ruby version with rvm uninstall X.X.X
and install the new one with rvm install X.X.X
and make it default by rvm use --default X.X.X
.
cheers.