Skip to content

Fix development dependencies#526

Merged
neilvcarvalho merged 1 commit into
mainfrom
nc-fix-build
Jan 31, 2025
Merged

Fix development dependencies#526
neilvcarvalho merged 1 commit into
mainfrom
nc-fix-build

Conversation

@neilvcarvalho
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread spec/fake_app.rb
end

Rails.logger = Logger.new("/dev/null")
Rails.logger = Logger.new(File::NULL)
Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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
@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