ledermann/docker-rails-base

Clear out entire cache directory

Closed this issue · 1 comments

ngan commented

Just noticed this line:

rm -rf /usr/local/bundle/cache/*.gem && \

It only clears out .gem caches. If you have a gem that is referencing a git repo, the cache there will be the entire repo itself. I think it's safe to clear out the entire cache/* directory instead of looking only for *.gem files.

Yes, this seems legit, so I changed it. Thanks!

BTW, I found this discussion recommending the same thing:
rubygems/rubygems#3225