-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Bundler 1.13 complains about corrupt lock when no lock exists #5006
Comments
/cc @segiddins |
@trevorturk since you're seeing this specific issue (of |
Further information: as per information from @trevorturk in #4467, the issue this particular ticket is triggered specifically by |
Hmmmmmmmmmmmm I'm sorry, I'm having trouble making a repro script. I'll give it another try tomorrow and report back. |
I've reproduced this and have been digging in, it appears that having the multiple gem specs in the repo is related |
Thanks, @segiddins! It occurred to me overnight that I personally ran into this issue only when I was changing ruby versions. So, I have a deployed app, then I change the ruby version, then I hit this issue when deploying again. I was wondering if the "ruby version" or "bundled with" lines in Gemfile.lock might cause a problem, but maybe that's silly. Anyway, I'll try to work up a script that runs through the bundle --deployment, ruby version change, bundle --deployment again to see if I can get a reproducible issue. It could be there are multiple things going on. My attempt to make a repro script last night didn't work, but I'm not ready to give up just yet :) |
@trevorturk no need, I've already opened up #5008 -- just see if that fixes things for you |
@segiddins I'm having trouble reproducing locally and I'm not sure how to get an unreleased gem onto my remote system. Any chance we could try your fix in #5008 via a |
git clone https://github.com/bundler/bundler /path/to/bundler
ruby -I/path/to/bundler/lib /path/to/bundler/exe/bundle $bundler_args |
Thanks for that! I'm sorry to report, however, that my issue does not appear to be fixed. I'll spend some more time trying to reproduce with a local script, but please do let me know if you have any other ideas of what I might be able to do to help debug. |
Here's the output from
... and I believe these are the relevant commands I'm running via a
|
Ah, luckily I seem to be able to reproduce the issue with only a single gem now. Here are my
You can see a bit more detail in my comment here: #4467 (comment) Apologies, I know this bug report is difficult to follow. I'll spend some more time trying to reproduce locally here, but I haven't had any luck so far, sadly. I'm more than happy to try a few different possible fixes and/or to change my settings etc if it'll help debug. Please do let me know. In any case, thanks for your patience and attention, @segiddins -- it's very much appreciated, but no worries if you're reached the end of your patience. I have been able to find a workaround as mentioned in my comment on the other issue, so there's no pressure on my end, I'd just like to help if I can. |
You need to have |
Ahh, sorry, I fat fingered that one. Sadly, fixing that doesn't seem to help:
|
OK, I'm really sorry, I forgot to mention the important step: |
Ha! Sorry I should have noticed that, too. Sorry x2 I don't think that did the trick:
|
I'll keep trying to repro locally -- I'd really like to have a script for you to test. In any case I wanted to note again that this change to my Gemfile gets around the issue:
This uses a branch rtomayko/sinatra-sequel@master...trevorturk:no-bacon where I comment out one line from the |
Work around a bundler bug rubygems/bundler#5006
Is it possible that the problem here is the version of the gem command and not bundler ? I have found that rubygems version 2.5.1 produces an erroneous Gemfile.lock. Regenerating Gemfile.lock using gem version 2.5.0 or 2.5.2 would fix it. There was some work on the Rubygems dependency graph around that time but I did not look further. I've added some gists to illustrate: |
@salemine it doesn't seem to be an issue with the gem command in my case, at least. I was on Unfortunately, I still haven't been able to make a working reproduction script locally. I really sorry about that -- I'll keep trying, but I'm out of ideas for today. If anyone wants to team up I'm happy to screen share etc to try and debug where I can reproduce using Codeship CI easily. |
…form, r=indirect [LazySpecification] Select the best platform match when materializing Closes #5006 This was not fun to track down >.<
@trevorturk please open a new issue |
I'll report back to #4467 if I'm able to make a repro script, otherwise I'll watch for updates there. Thanks! |
…form, r=indirect [LazySpecification] Select the best platform match when materializing Closes #5006 This was not fun to track down >.<
bundler-1.13.2 seems to have fixed the issue we were seeing: % bundle install --without development
Fetching gem metadata from https://rubygems.org/........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies...
Using libyajl2 1.2.0
Using bundler 1.13.2
Using ffi-yajl 2.3.0 from source at `.`
Bundle complete! 16 Gemfile dependencies, 3 gems now installed.
Gems in the groups development, development_extras and rbx were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
|
This works just fine on Bundler 1.12.x, but on Bundler 1.13.x it's an error.
The text was updated successfully, but these errors were encountered: