This does the opposite of what a cache is supposed to do: save bandwidth and time. Compare:
No vendor/cache in the source repo - every gem is downloaded only once (when I run bundle install)
vendor/cache in the source repo - every version of every gem you have ever checked in is downloaded when I run git clone plus more are downloaded when I run bundle install
Additionally: this adds friction for contributors: I have just executed bundle install and now I have a bunch of files under vendor/cache that got added or removed. What am I supposed to do with that? Check that in? I sure hope you would not accept a PR that adds even a single file under vendor/cache - you have no idea where that file came from, for all you know the person submitting the PR could be a cyber criminal trying to compromise you.
This does the opposite of what a cache is supposed to do: save bandwidth and time. Compare:
bundle install
)git clone
plus more are downloaded when I runbundle install
Additionally: this adds friction for contributors: I have just executed
bundle install
and now I have a bunch of files under vendor/cache that got added or removed. What am I supposed to do with that? Check that in? I sure hope you would not accept a PR that adds even a single file under vendor/cache - you have no idea where that file came from, for all you know the person submitting the PR could be a cyber criminal trying to compromise you.