Bug #20287

plugin asset precompilation broken with sprockets-rails 3.x
Description
23:54:48 ** Execute plugin:assets:precompile 23:54:48 rake aborted! 23:54:48 NoMethodError: undefined method `register_engine' for nil:NilClass 23:54:48 /usr/share/foreman/lib/tasks/plugin_assets.rake:52:in `initialize' 23:54:48 /usr/share/foreman/lib/tasks/plugin_assets.rake:107:in `new' 23:54:48 /usr/share/foreman/lib/tasks/plugin_assets.rake:107:in `block in <top (required)>' 23:54:48 /usr/share/foreman/vendor/ruby/2.1.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `call'
Related: https://github.com/rails/sprockets-rails/issues/237
This is breaking all new packaging of plugins for DEB.
Related issues
Associated revisions
Fixes #20287 - fix plugin assets precompilation
The error was only visible with RAILS_ENV=production
Refs #20287 - unpin sprockets-rails again
This reverts commit 56c18f27e43876a31007875e8ab6403aea862723.
History
#1
Updated by Anonymous about 5 years ago
- Related to Refactor #18512: Support sprockets-rails 3 added
#2
Updated by The Foreman Bot about 5 years ago
- Assignee set to Anonymous
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/4673 added
#3
Updated by Anonymous about 5 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset b8139123dfa86e8447a879a178442660387bf01c.
Refs #20287 - pin down sprockets-rails to 2.x