I am trying to get my Ruby gems to cache. However it is not working.
I have tried
bundle check --path=~/programs/vendor/bundle || bundle install --path=~/programs/vendor/bundle --jobs=4 --retry=3
and I see in Save Cache
I am noticing that the
.bundle is not getting saved, but my
vendor/bundle is getting saved.
However when I run
bundle check on that directory, it doesn’t find anything, and goes ahead and downloads and installs everything. So now I am losing time in Save and Restore cache, and I haven’t gained any speed from the
bundle install command.
What am I doing wrong here? Any ideas?
I have also tried to install the
vendor directory in a different location, and add that path to the
cache_dependancies but without any luck.
Same thing happens, the requirements are not met, and it downloads the gems and installs them, instead of using the cache.
Thanks in advance