New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bundler unable to lock new gem version even after publication #7369
Comments
Yeah, |
Just in case anyone is curious, this is in use by Renovate which is how I got to this point and why I can't simply remove that parameter for my use case. From the docs I couldn't find any mention of it being an inappropriate combination of options for this case, though. Making it work would be awesome, but if that's not possible, maybe a more specific error would be useful. |
So I looked into this and, while it seems easy enough to make this "work", i.e. in the example you gave, update the lockfile to playbook_ui-13.15.0 to bring it in sync with the Gemfile, I'm not sure that's what we want. In the example you gave, the Gemfile was edited to require exactly playbook_ui-13.15.0, while the lockfile is locked at playbook_ui-13.14.0. Then So I wonder if perhaps we should just aim at printing a better error. What's your expectation here? |
#7376 would be the "solution" I attempted initially, but as I explained, I don't think we should go with that approach. |
Thank you @deivid-rodriguez . I need to cycle back and understand Renovate's implementation and how it picks the |
Sorry for the delay in following up on this. Looks like it was raised in Renovate at renovatebot/renovate#25955. I think it's reasonable to follow the path of working around this in Renovate, and I think just a better error in Bundler would suffice. |
@deivid-rodriguez In order to handle this case in Renovate, which is a little different to the case described in renovatebot/renovate#25955, it would be helpful to understand what sort of error Bundler might emit in the future. Do you have any idea how that might be written? |
I was thinking something along the lines of
|
If we could go with "version solving has failed" that would match the other case and thus the conditional already in Renovate. |
Yes, that makes sense 👍. |
Describe the problem as clearly as you can
With a specific gem (rails) locked to version 7.0.8, I am unable to upgrade to 7.1.2 despite this being available on rubygems.org. Doing
gem install rails --version 7.1.2
works.Did you try upgrading rubygems & bundler?
Yes, latest versions.
Bundler: 2.5.4
Rubygems: 3.5.4
Post steps to reproduce the problem
https://gist.github.com/benlangfeld/0cc8fa8b0e441cbd6427cf1f1bc35832
Which command did you run?
bundler lock --patch --strict --update rails
Leaving off
--patch
works.What were you expecting to happen?
The
Gemfile.lock
should be updated with the new version.What actually happened?
If not included with the output of your command, run
bundle env
and paste the output belowhttps://gist.github.com/benlangfeld/3c608ad0ba53c934194477491f9f6b9e
The text was updated successfully, but these errors were encountered: