Closed hkdobrev closed 1 year ago
To be very honest with you I'm not 100% sure why it is like that since it was one of the very first buckets I wrote, but I believe it was somehow by design since all buckets are about caching the downloaded tarballs and not the extracted files themselves.
If you really want that behavior you might want to use the generic cache bucket pointing it to the right path and disable the automatic bucket detection (unfortunately we can't blacklist just the gems bucket autodetection ATM).
Does that help?
unfortunately we can't blacklist just the gems bucket autodetection ATM
I do not understand what do you mean with that. If you remove /cache
from the code I've referenced above, wouldn't it work as well?
all buckets are about caching the downloaded tarballs and not the extracted files themselves
I get that, but in the <gem dir>/cache
directory I have .gem
files.
you might want to use the generic cache bucket pointing it to the right path and disable the automatic bucket detection
I'll try that, thanks!
P.S. I'm not very familiar with Ruby and Gems so forgive me if I'm getting something completely wrong.
unfortunately we can't blacklist just the gems bucket autodetection ATM
Sorry, this means that we currently can't tell vagrant-cachier that we want to disable automatic detection for a specific bucket. You'd probably want that since you want to configure things in a different way :-)
I do not understand what do you mean with that. If you remove /cache from the code I've referenced above, wouldn't it work as well?
It might, but the behavior of that bucket would be different from the others we have around because we would be caching all of the gems sources instead of just the tarballs.
all buckets are about caching the downloaded tarballs and not the extracted files themselves
I get that, but in the
/cache directory I have .gem
files.
Yeah, .gem
s are the compressed sources of Ruby Gems (kinda like a tarball :-P)
Hey, sorry for the silence here but this project is looking for maintainers :sweat_smile:
As per https://github.com/fgrehm/vagrant-cachier/issues/193, I've added the ignored
label and will close this issue. Thanks for the interest in the project and LMK if you want to step up and take ownership of this project on that other issue :wave:
I (think) have a problem with how this (gorgeous) plugin caches Ruby gems.
Have a look at: https://github.com/fgrehm/vagrant-cachier/blob/b2b0d98dfac02a448c09579edd84e3bd99a8552f/lib/vagrant-cachier/bucket/gem.rb#L14
At the moment it symlinks the gem cache dir
/tmp/vagrant-cache/gem/<ruby version>
to<gem path>/cache
.Why not symlink the cache dir directly to
<gem dir>
?My problem resides in that everything works, but when try to provision offline it doesn't find the gems even if they are previously cached.
Any help is appreciated! Thank you for your work!