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

Fix development dependencies #526

Merged
merged 1 commit into from
Jan 31, 2025
Merged

Fix development dependencies #526

merged 1 commit into from
Jan 31, 2025

Conversation

neilvcarvalho
Copy link
Member

Some changes in our dependency tree have led to broken builds. For example, concurrent-ruby, which Rails uses, stopped requiring logger on version 1.3.5, which was fixed in Rails 7.1. Another change is that Ruby decreased its standard library, removing some preloaded gems, such as mutex_m.

This commit updates the dependencies to the latest supported version, limits the concurrent-ruby version to < 1.3.4 in Rails versions that don't require logger, and adds mutex_m to the list of development dependencies.

Some changes in our dependency tree have led to broken builds. For
example, `concurrent-ruby`, which Rails uses, stopped requiring `logger`
on version 1.3.5, which was fixed in Rails 7.1. Another change is that
Ruby decreased its standard library, removing some preloaded gems, such
as `mutex_m`.

This commit updates the dependencies to the latest supported version,
limits the `concurrent-ruby` version to `< 1.3.4` in Rails versions that
don't require `logger`, and adds `mutex_m` to the list of development
dependencies.
Copy link
Contributor

@seanpdoyle seanpdoyle left a comment

Choose a reason for hiding this comment

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

Nice! Will this also fix the Logger-related CI failures? I'd tried to fix them in eae4dbc, but was unsuccessful.

@@ -24,6 +24,6 @@ class Application < Rails::Application
end
end

Rails.logger = Logger.new("/dev/null")
Rails.logger = Logger.new(File::NULL)

Choose a reason for hiding this comment

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

nice, didn't know about this :scribbles in notes:

Copy link
Member Author

Choose a reason for hiding this comment

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

TIL too - thanks new standard check

@neilvcarvalho
Copy link
Member Author

@seanpdoyle It will! That was happening because concurent-ruby stopped requiring logger (which rails didn't). It was only fixed in Rails 7.1 onwards.

@neilvcarvalho neilvcarvalho merged commit de8ee87 into main Jan 31, 2025
18 checks passed
@neilvcarvalho neilvcarvalho deleted the nc-fix-build branch January 31, 2025 16:45
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