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

Require sprockets deprecator in Railtie #525

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Jun 6, 2024

With the release of sprockets-rails 3.5.0, our local test suite breaks with

NoMethodError:
  undefined method `deprecator' for Sprockets::Rails:Module
 /home/circleci/solidus/vendor/bundle/ruby/3.2.0/gems/sprockets-rails-3.5.0/lib/sprockets/railtie.rb:129:in `block in <class:Railtie>'

This should fix that by explicitly requiring the
Sprockets::Rails.deprecator in both lib/sprockets/rails.rb and lib/sprockets/railtie.rb.

Fix #524

Copy link
Member

Choose a reason for hiding this comment

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

Can we remove "require 'active_support'" from this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

lib/sprockets/rails.rb Outdated Show resolved Hide resolved
lib/sprockets/rails/deprecator.rb Outdated Show resolved Hide resolved
With the release of sprockets-rails 3.5.0, our local test suite breaks
with

```
NoMethodError:
  undefined method `deprecator' for Sprockets::Rails:Module
 /home/circleci/solidus/vendor/bundle/ruby/3.2.0/gems/sprockets-rails-3.5.0/lib/sprockets/railtie.rb:129:in `block in <class:Railtie>'
```

This should fix that by explicitly requiring the
`Sprockets::Rails.deprecator` in both `lib/sprockets/rails.rb` and
`lib/sprockets/railtie.rb`.

Should fix rails#524
@mamhoff mamhoff force-pushed the require-deprecator-in-railtie branch from fa7dc71 to d34e89c Compare June 7, 2024 05:50
yahonda added a commit to rails/rails that referenced this pull request Jun 7, 2024
@yahonda
Copy link
Member

yahonda commented Jun 7, 2024

Thanks for the update. I have pushed a commit to see if this pull request addresses Rails CI failures https://buildkite.com/rails/rails/builds/108096

tvdeyen added a commit to tvdeyen/alchemy-devise that referenced this pull request Jun 7, 2024
@byroot
Copy link
Member

byroot commented Jun 7, 2024

Ah thank you I was doing exactly the same thing :)

Seems like there is still one test fialing on the Rails side, but I'll investigate it.

@byroot byroot merged commit d3f1806 into rails:master Jun 7, 2024
12 checks passed
@byroot
Copy link
Member

byroot commented Jun 7, 2024

but I'll investigate it.

Hum, I can't seem to repro it locally 🤔

tvdeyen added a commit to tvdeyen/alchemy_cms that referenced this pull request Jun 7, 2024
tvdeyen added a commit to tvdeyen/alchemy_cms that referenced this pull request Jun 7, 2024
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.

NoMethodError exception with sprockets-rails 3.5.0
3 participants