Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Deprecated framework rake tasks should exit with non-zero exit code

#4177

The rails:freeze:gems, rails:freeze:edge, and rails:unfreeze tasks have been deprecated in Rails 3.0.0 in favor of Bundler. When executing any of these tasks, they currently output a deprecation message via puts. However, this won't halt the rake execution chain and it doesn't return a non-zero error exit code to the OS level. This means any automated use of these rake tasks will fail silently with only a message that a human must read to notice that they didn't execute properly.

This patch changes the puts to abort so that the rake execution chain is halted and the OS receives an exit code of 1.

Reported by Chris Griego · March 14th, 2010 @ 07:00 PM

State: committed
Milestone: 3.0.2
Assigned to: José Valim José Valim
Importance: High

Activity

  1. Chris Griego
    Chris Griego
    • Tag changed from patch, railties, tasks to bug, patch, railties, tasks

    March 15th, 2010 @ 12:19 PM

  2. José Valim
    José Valim
    • State changed from new to open
    • Assigned user set to José Valim
    • Milestone cleared.

    March 15th, 2010 @ 02:46 PM

  3. Repository
  4. José Valim
    José Valim
    • State changed from open to committed

    March 16th, 2010 @ 10:11 AM

  5. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to High

    October 15th, 2010 @ 11:01 PM