Project

General

Profile

Bug #20287

plugin asset precompilation broken with sprockets-rails 3.x

Added by Michael Moll about 1 year ago. Updated 10 days ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Plugins-Engines
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

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

Related to Foreman - Refactor #18512: Support sprockets-rails 3Closed2017-02-15

Associated revisions

Revision 56c18f27 (diff)
Added by Michael Moll about 1 year ago

Refs #20287 - pin down sprockets-rails to 2.x

Revision b8139123 (diff)
Added by Michael Moll 12 months ago

Fixes #20287 - fix plugin assets precompilation

The error was only visible with RAILS_ENV=production

Revision d86dc32a (diff)
Added by Michael Moll 12 months ago

Refs #20287 - unpin sprockets-rails again

This reverts commit 56c18f27e43876a31007875e8ab6403aea862723.

History

#1 Updated by Michael Moll about 1 year ago

#2 Updated by The Foreman Bot about 1 year ago

  • Status changed from New to Ready For Testing
  • Assignee set to Michael Moll
  • Pull request https://github.com/theforeman/foreman/pull/4673 added

#3 Updated by Michael Moll 12 months ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF