-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
When using JRuby 9.4.7 and bundler 2.5.11, Adding additional platforms to the lockfile removes existing ones #7741
Comments
Thanks for the report! In the issue title, it mentions Bundler 2.5.11, however your Also, would it be possible to share a Gemfile that reproduces the problem? I understand you're most likely using private gems, but can you try minimize the Gemfile removing the private stuff and see if the problem still reproduces? I did some testing with JRuby and I was not able to reproduce the problem, that's why I need more specific information. |
I'll close since there was no further feedback, so assuming this was fixed in the latest releases. If you're still running into this, please reopen posting the requested information if possible. |
@deivid-rodriguez I just tried with bundler |
Ok, thanks. I'll reopen for a couple more weeks in case someone else posts the requested information. Otherwise this issue is not actionable for me, since I don't know what's wrong and I can't reproduce the problem. |
@deivid-rodriguez I'm currently in the process of creating a reproducible example. I unfortunately cannot share the original Gemfile since it contains internal gems hosted on a JFrog rubygems pull through mirror (one of the areas I'm considering there might be a problem). But as of right now I've narrowed it down to some oddities around an internal gem that we publish two versions of, one with no platform specified and the other The frustrating thing so far is that it doesn't occur every time, just some of the time. Is there a verbose flag I could enable, that would print when a platform gets removed from the lockfile?. |
Thanks! No, but I'll try to introduce some debug logging for this and let you know once ready so you can get more information that may help you isolate this more 👍. |
I originally posted this issue in jruby/jruby#8287 but was told this is unlikely to be a JRuby bug.
Environment Information
jruby-9.4.7.0 @ jdk21
cruby-3.1.5
macOS 14.5
bundler 2.5.11
Describe the problem as clearly as you can
When using JRuby 9.4.7 (latest) , I cannot add additional platforms to the
Gemfile.lock
without existing platforms being removed.However, with CRuby 3.1.5 this does not occur and I am able to add additional platforms without removal.
Post steps to reproduce the problem
I start with the following
PLATFORMS
section in my Gemfile.And run
I expect just the
universal-java-21
platform to be added to the Gemfile.lock.Which command did you run?
bundle lock --add-platform arm64-darwin-22 arm64-darwin-23 x86_64-linux universal-java-17 universal-java-21
What were you expecting to happen?
What actually happened?
If not included with the output of your command, run
bundle env
and paste the output belowEnvironment
Bundler Build Metadata
Bundler settings
The text was updated successfully, but these errors were encountered: