Forum: Ruby Bundler vs. yanked Gems

Posted by Leslie Viljoen (leslieviljoen)
on 2013-02-08 11:25
(Received via mailing list)
Hi everyone!

There was a mistake with gem dependencies, resulting in net-scp 1.0.6 
being
yanked: https://github.com/net-ssh/net-ssh/issues/80

Unfortunately, my Bundler had seen 1.0.6 and put that in my 
Gemfile.lock.
Bundler did not understand - "bundle update net-scp" just kept local
version 1.0.6.

After some fighting, I had to "gem search -rda net-scp" and pick another
version, then peg to that version in Gemfile, then "bundle update 
net-scp".
Even though net-scp was originally just a dependency, pulled in by fog.

There's an issue for this: 
https://github.com/carlhuda/bundler/issues/2277

But in the meantime, is there a better way to get bundler to forget it's
seen a version?
Posted by vlad ec (vladm)
on 2013-02-12 20:57
Does not removing the Gemfile.lock resolve that issue? Recently I 
installed mistakenly some newer gem and the bundler complaints 
disappeared after I deleted Gemfile.lock.
v.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.