[Feature Request] A "prune" option, or similar. #7018
Replies: 3 comments 3 replies
|
This is interesting proposal and it seems this is partially fixed by #6133. Any idea how this should work? Should it be default behaviour for frozen install for example or implemented in additional command |
|
@byroot I started on a prune setting for this at #9815. It is set through One constraint I want to check with you. Without an explicit bundle path Bundler installs into the system gem directory, and pruning there would delete So the setting only takes effect when |
|
Merged in #9815 and shipping in 4.1.0 as described above. |
Uh oh!
There was an error while loading. Please reload this page.
Context
In some situations, (such as docker image building, CI caching, etc), it's desirable to minimize the bundler path footprint.
Current workaround
Here's the script we're using right now:
And it's quite effective:
Proposal
This script works well, but I think that if such feature was shipped with bundler itself it would be useful for many more people.
NB: the
.a/o/etcremoval is probably out of scope for a generic tool, but I think thecacheand.gitwould benefit most people without breaking anything.All reactions