ruby: Revert rubygems to 3.0.6 for ruby 2.6 and earlier#76757
Closed
andersk wants to merge 2 commits intoNixOS:masterfrom
Closed
ruby: Revert rubygems to 3.0.6 for ruby 2.6 and earlier#76757andersk wants to merge 2 commits intoNixOS:masterfrom
andersk wants to merge 2 commits intoNixOS:masterfrom
Conversation
The rubygems upgrade from 3.0.6 to 3.1.2 (NixOS#76495) broke vagrant at runtime. Specifically, it * works with ruby 2.6 and rubygems 3.0.6, * fails with ruby 2.6 and rubygems 3.1.2, * works with ruby 2.7 and rubygems 3.1.2, perhaps because bundler 2.1 vendored by rubygems 3.1 conflicts with bundler 1.17 vendored by ruby 2.6. Fixes NixOS#76629. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Member
|
I’m strongly opposed to reverting just because one package is incompatible. |
Just running `vagrant --version` was insufficient to catch NixOS#76629, but this would have. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Contributor
Author
|
I’m open to any suggestions—what should we do? Note that I’m not reverting anything for ruby 2.7, with which the new rubygems works fine. |
Member
|
Does Vagrant work with Ruby 2.7? That would be a fix I'd be much
happier merging now, even before we fix the underlying issue here.
|
Contributor
Author
|
Hmm. I thought it did, but my test must have been wrong. I tested |
Contributor
Author
|
I discovered an alternative fix on the Vagrant side only: #76765. I have no idea why it works, though. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation for this change
The rubygems upgrade from 3.0.6 to 3.1.2 (#76495) broke vagrant at runtime. Specifically, it
perhaps because bundler 2.1 vendored by rubygems 3.1 conflicts with bundler 1.17 vendored by ruby 2.6.
Fixes #76629.
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)nix path-info -Sbefore and after)Notify maintainers
cc @vrthra @manveru @alyssais @zimbatm @aneeshusa