Cleaning up the bundler cache when deploying to heroku

Rubinsh picture Rubinsh · Jan 26, 2013 · Viewed 9.9k times · Source

Whenever I'm deploying to Heroku (Ruby on Rails app using the heroku_san gem) it says the following:

Cleaning up the bundler cache.
Would have removed sitemap_generator (2.0.1.pre1)
Would have removed newrelic_rpm (3.5.5.38)
Would have removed httparty (0.10.0)
Would have removed thor (0.16.0)
Would have removed ckeditor (3.7.1)
Would have removed fog (1.8.0)
Would have removed rake (0.9.2.2)
Would have removed dalli (2.6.0)

(or any other old gem I might have from previous deployments) How can I clean the bundler cache in the Heroku app? I tried to run:

heroku run bundle clean --force

but it did not help.

Can anyone tell me how to clean the bundler cache in Heroku? Or if I should ignore this message?

Answer

wuputah picture wuputah · Feb 5, 2013

This is due to a recently-introduced change in Bundler. We (Heroku) need to track down why it thinks it is running in --dry-run mode and fix it.

In the meantime, this is not harmful and shouldn't cause any issues. Unfortunately, there's no way to clear your cache manually if you're worried about it.