Description of the feature request
I cached GEM_HOME and then my build broke after updating dependencies. The cache should be smarter about deleting dirs based on changes (ex: Gemfile.lock, Podfile.lock) to prevent build problems.
I don’t have a great solution but it’d be nice to make sure the cache is as robust as possible and works well for common use cases (rubygems, cocoapods, etc.)
Use case / for what or how I would use it
I’d like to use the cache to improve build speeds. Not using the cache means builds are slow.