If I have:
gem "rails", :git => "git://github.com/rails/rails.git", :ref => "3-0-stable"
In my Gemfile I end up with a directory like:
in my slug. This directory contains a .git directory. In a slug created from an app with the above line in its Gemfile that .git directory is 64M. I believe this directory can be removed from the slug and things will still work.
Remove .git directories from git-sourced gems. Ref heroku/heroku-buil…
As a datapoint for this issue, my buildpack has been used with the linked commit for some time without issues seen or reported.
Seems good to me. Do you have any idea how long the .git/ folder removal takes?
Near-none in my experience, though I have not measured specifically. I just pushed an app using rails from git and my buildpack and there was no noticeable delay between installing the bundle and "Discovering process types", during which the deletion would have taken place.
We should probably do this
👍 I still think this should be safe.
Pinging @schneems. Any news on this?
👍 Willing to take a stab on this if we're all good with the idea.
This is deployed