This project is archived and is in readonly mode.
Deprecated framework rake tasks should exit with non-zero exit code
Reported by Chris Griego | March 14th, 2010 @ 07:00 PM | in 3.0.2
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.
Comments and changes to this ticket
-
Chris Griego March 15th, 2010 @ 12:19 PM
- Tag changed from patch, railties, tasks to bug, patch, railties, tasks
-
José Valim March 15th, 2010 @ 02:46 PM
- State changed from new to open
- Assigned user set to José Valim
- Milestone cleared.
-
Repository March 16th, 2010 @ 10:11 AM
(from [0f504a5646ba9eaf4c6a439075f0cf76e45257dc]) Deprecated framework rake tasks should exit with non-zero exit code [#4177 status:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/0f504a5646ba9eaf4c6a439075f0cf... -
José Valim March 16th, 2010 @ 10:11 AM
- State changed from open to committed
-
Jeremy Kemper October 15th, 2010 @ 11:01 PM
- Milestone set to 3.0.2
- Importance changed from to High
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Referenced by
- 4177 Deprecated framework rake tasks should exit with non-zero exit code (from [0f504a5646ba9eaf4c6a439075f0cf76e45257dc]) Depreca...