Skip to content
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

Attempted deployment fix by requiring default gems #471

Merged
merged 1 commit into from
Jul 20, 2022
Merged

Conversation

peteryates
Copy link
Member

Context and changes

When moving to Ruby 3.1 some parts of the standard library were moved to default gems. While we're on Rails 6.x they need to be included in the gem file, as discussed in this GitHub issue.

gem 'net-smtp'
gem 'net-imap'
gem 'net-pop'

Once we upgrade to Rails 7 these requirments can be dropped.

Background

The relevant part of the log:

$ cf logs npq-registration-dev --recent
...
2022-07-20T11:26:40.86+0100 [APP/PROC/WEB/0] ERR /usr/local/bundle/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:27:in `require': cannot load such file -- net/pop

When moving to Ruby 3.1 some parts of the standard library were moved to
default gems[0][1]. While we're on Rails 6.x they need to be included
in the gem file, as discussed in this this GitHub issue[2].

Once we upgrade to Rails 7 these requirments can be dropped.

[0] https://bugs.ruby-lang.org/issues/17873
[1] https://stdgems.org/#default-gems-ruby-301
[2] mikel/mail#1439 (comment)
@peteryates peteryates merged commit 7ae0684 into main Jul 20, 2022
@peteryates peteryates deleted the fix-deployments branch July 20, 2022 10:56
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.

2 participants