-
-
Notifications
You must be signed in to change notification settings - Fork 2k
same gem version with different content #4461
Comments
So, chances seem high that there is a corrupt cache involved here somewhere. The canonical version of the gem can be downloaded from rubygems.org/gems/GEMNAME. You can find cached gems in You can tell Bundler to download and re-install by running |
Thanks for the quick reply, @indirect! I think in this particular case, rails-assets use their own source - i.e. it's not on rubygems.org (?) Thanks for the tip about Just curious - but isn't there some way to fingerprint gems with a hash digest? So at least you can detect potential corruptions? |
@gingerlime since rails assets runs their own server, I don't know whether they guarantee that a gem version will always have the same contents. The new index project that we've been working on for a few years now does include a hash of every gem. You can try out a version of Bundler that includes the new index by running |
Thanks again, @indirect. Really good to know. I'll take a look. Hope this becomes stable and a more reliable way of using gems with bundler. It can certainly help avoid any surprises like we're seeing now :) I'm closing this one, since the issue is quite clearly not in bundler. |
I just tried |
related: #4464 |
New index format now has this, and given |
I already posted it here but I'm not sure where the problem lies exactly, and looking for at least a safe workaround.
TL;DR we are using the same
Gemfile
,Gemfile.lock
and same version of bundler (1.11.2) in two different environments, but we're seeing different actual content (files, directories) inside the Gem.This seems rather weird and also we're now a little scared to deploy, in case we'll get a different version and things will break. We currently see this difference between our dev and continuous integration environment (Semaphore).
Even if it's possible that the same Gem version gets mutated, is there a bundle command to pull the gem again even if it's already installed?
The text was updated successfully, but these errors were encountered: