How to declare top rake prerequisites from within a namespace
Here’s the problem
task :mytask do
# ...
end
namespace :myscope do
task :mytask => :mytask
end
This will end up with loop dependency error, so how we can call a top level task with the same name of one from our current scope?
The solution is not documented, i found it directly in the rake’s library code.
task :mytask do
# ...
end
namespace :myscope do
task :mytask => "rake:mytask"
end
