I'm using a build system which defines a number of rake targets, including this one:
task :test => [:all]
This seems incorrect to me, and so I defined my own rake tasks like so:
task :test => [:spec]
task :all => [:test, :build]
task :release => [:all]
task :default => [:release]
However, now I'm getting this error when I try to build my package:
Circular dependency detected: TOP => default => all => test => all
Tasks: TOP => default => all => test
BUILD FAILED
I've come to realize that defining a rake task (or dependencies for a rake task) just appends those tasks/dependencies to the task definition! This is driving me crazy! Why can't I redefine my rake tasks as I see fit?! Is there any way to overwrite a rake task, and/or to overwrite the dependencies of a rake task?