-
Notifications
You must be signed in to change notification settings - Fork 111
Symlink to gem dir instead of ./cache #123
Comments
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? |
I do not understand what do you mean with that. If you remove
I get that, but in the
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. |
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 :-)
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.
Yeah, |
Hey, sorry for the silence here but this project is looking for maintainers 😅 As per #193, I've added the |
I (think) have a problem with how this (gorgeous) plugin caches Ruby gems.
Have a look at:
vagrant-cachier/lib/vagrant-cachier/bucket/gem.rb
Line 14 in b2b0d98
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!
The text was updated successfully, but these errors were encountered: