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

Explicitly require mutex_m in CI for Ruby ≥ 3.4 and Rails ≤ 7.0 #47

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

PetrHeinz
Copy link
Member

@PetrHeinz PetrHeinz commented Feb 3, 2025

Since Ruby 3.4, CI started to fail for Rails lower that 7.1

warning: mutex_m was loaded from the standard library, but is not part of the default gems starting from Ruby 3.4.0.
You can add mutex_m to your Gemfile or gemspec to silence this warning.

An error occurred while loading spec_helper. - Did you mean?
                    rspec ./spec/spec_helper.rb

Failure/Error: require "rails/railtie"

LoadError:
  cannot load such file -- mutex_m
# ./vendor/bundle/ruby/3.4.0/gems/activesupport-6.0.6.1/lib/active_support/notifications/fanout.rb:3:in '<top (required)>'
# ./vendor/bundle/ruby/3.4.0/gems/activesupport-6.0.6.1/lib/active_support/notifications.rb:4:in '<top (required)>'
# ./vendor/bundle/ruby/3.4.0/gems/activesupport-6.0.6.1/lib/active_support/deprecation/behaviors.rb:3:in '<top (required)>'
# ./vendor/bundle/ruby/3.4.0/gems/activesupport-6.0.6.1/lib/active_support/deprecation.rb:18:in '<class:Deprecation>'
# ./vendor/bundle/ruby/3.4.0/gems/activesupport-6.0.6.1/lib/active_support/deprecation.rb:8:in '<module:ActiveSupport>'
# ./vendor/bundle/ruby/3.4.0/gems/activesupport-6.0.6.1/lib/active_support/deprecation.rb:5:in '<top (required)>'
# ./vendor/bundle/ruby/3.4.0/gems/activesupport-6.0.6.1/lib/active_support/inflector/inflections.rb:5:in '<top (required)>'
# ./vendor/bundle/ruby/3.4.0/gems/activesupport-6.0.6.1/lib/active_support/inflector.rb:4:in '<top (required)>'
# ./vendor/bundle/ruby/3.4.0/gems/railties-6.0.6.1/lib/rails/railtie.rb:4:in '<top (required)>'
# ./lib/logtail-rails.rb:5:in '<top (required)>'
# ./spec/support/logtail.rb:1:in '<top (required)>'
# ./spec/spec_helper.rb:14:in '<top (required)>'

@PetrHeinz PetrHeinz merged commit 2e6b541 into main Feb 3, 2025
64 checks passed
@PetrHeinz PetrHeinz deleted the ph/fix-ci-mutex-m branch February 3, 2025 14:26
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.

1 participant