-
-
Notifications
You must be signed in to change notification settings - Fork 326
Support Ruby 3.1.0 for Windows #253
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
Conversation
Follow up to oneclick/rubyinstaller2#255 (comment). This PR adds Ruby 3.1.0 to windows-version.js.
3d207f9
to
71f1808
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
(I removed the extra newline)
Unfortunately it fails:
@larskanis Does RubyInstaller change bin/bundle? That can cause issues like this, I'm not sure how to fix. 3.1.0 ships with bundler 2.3.3, and latest bundler release is 2.3.4 so at least it's not the same bundler version. |
No, there's no modification from the RubyInstaller side. I can reproduce this issue locally. Seems to be a problem in rubygems. I'll check this. For the time being, the workaround is to call gem install bundler --force |
@larskanis Thanks for the quick reply. @MSP-Greg found a workaround by updating to latest RubyGems (#224 (comment)), so maybe it's a RubyGems/Ruby bug as in 3.1.0 ship with a bin/bundler different than the one RubyGems would generate? |
@larskanis Could you post the start of your |
I'll try |
Just to be clear, Windows Ruby 3.1.0, head and ucrt are compiled with the MSYS2 UCRT64 tool chain, which is not installed on either windows-2019 or windows-2022. Extension gems or c source may compile on windows-2019, which currently has MINGW64 tools. Note that they may or may not pass their CI, but mixing the MINGW64 & UCRT64 tools chains is a bad idea and can cause very odd problems. MINGW64 links to a set of Windows 'legacy' dll files, UCRT64 links to a newer set. |
This PR passes all the tests now, I think it's worth merging so people can try Ruby 3.1 on Windows. |
ruby/setup-ruby#253 has been merged and follow up to rubocop#10327 (comment).
It was originally added by ruby#253, in order to fix CI. However, now CI passes without it so I assume this was fixed by rubyinstaller2. Force actually bypasses dependency constraints so it's actually installing the latest Bundler in a version of Ruby that's incompatible with it.
It was originally added by #253, in order to fix CI. However, now CI passes without it so I assume this was fixed by rubyinstaller2. Force actually bypasses dependency constraints so it's actually installing the latest Bundler in a version of Ruby that's incompatible with it.
Follow up to oneclick/rubyinstaller2#255 (comment).
This PR adds Ruby 3.1.0 to windows-version.js.