Actions
Bug #7317
closedAsset compilation fails in RPMs as Rubocop rake task unavailable
Description
As the 'test' bundler group is excluded when building assets in an RPM environment, the rubocop dependency isn't installed. This causes an error trying to load its tasks:
+ BUNDLER_EXT_GROUPS='default assets' + /usr/bin/ruby193-rake assets:precompile:all RAILS_ENV=production --trace rake aborted! cannot load such file -- rubocop/rake_task /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require' /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `block in require' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require' /builddir/build/BUILD/foreman-1.7.0/lib/tasks/rubocop.rake:2:in `<top (required)>' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `load' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `block in load' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `load' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:425:in `block in load_tasks' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:425:in `each' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:425:in `load_tasks' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application.rb:145:in `load_tasks' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing' /builddir/build/BUILD/foreman-1.7.0/Rakefile:7:in `<top (required)>'
Actions