Skip to content

Fix Ruby 3.1 on CI #2553

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

Merged
merged 1 commit into from
Jan 10, 2022
Merged

Fix Ruby 3.1 on CI #2553

merged 1 commit into from
Jan 10, 2022

Conversation

pirj
Copy link
Member

@pirj pirj commented Jan 10, 2022

Originally by @petergoldstein from #2552

net-* gems were demoted, and while Rails 7.0.1 explicitly requires them, earlier versions don't.

Purposed to fix other RSpec repos' rspec-rails sub-build on Ruby 3.1, see e.g. https://github.com/rspec/rspec-support/pull/527/files#diff-bde1ccb98959c0287bdc7bc203ab3a0dab55c1841be3d7a9678cd42a50670141R108

@pirj pirj self-assigned this Jan 10, 2022
@pirj pirj requested a review from JonRowe January 10, 2022 23:25
@pirj pirj changed the title Get Ruby 3.1 in CI Fix Ruby 3.1 on CI Jan 10, 2022
@pirj pirj merged commit cef194e into main Jan 10, 2022
@pirj pirj deleted the fix-ruby-3.1-for-sub-builds branch January 10, 2022 23:45
gem 'net-smtp', require: false
gem 'net-imap', require: false
gem 'net-pop', require: false
end
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, it's understandeable that this didn't help. The whole thing also needs to be replicated on the when nil, false, "" branch, and when /stable$/.
It's not needed in when /main/, since main goes for the ongoing Rails 7.1 and it's fixed there.

I intend to move this outside of case and remove the Rails version check.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you get it sorted feel free to use dev tools to try to remove the check

pirj added a commit that referenced this pull request Jan 11, 2022
Follow-up to #2553
I've quite missed the fact that dependent builds specify no
`RAILS_VERSION`, and another `case` branch was used, causing `net-`
dependency failures.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants