Describe the bug
Per 4dc603b#commitcomment-54080150
4.6.2 extends Rake::Task with aliasing execute method. Unfortunately this causes stack level too deep (SystemStackError), when Rake::Task#execute is overridden using #prepend
To Reproduce
Create a Rakefile:
require 'bundler/inline'
require 'rake'
module MyGem
module Task
def execute(...)
# do something
super(...)
end
end
end
Rake::Task.prepend(MyGem::Task)
require 'sentry-ruby'
task(:test) { }
Run rake test
Expected behavior
rake test should not cause SystemStackError
Actual behavior
rake test ends with SystemStackError
Environment
Describe the bug
Per 4dc603b#commitcomment-54080150
4.6.2extendsRake::Taskwith aliasingexecutemethod. Unfortunately this causesstack level too deep (SystemStackError), whenRake::Task#executeis overridden using#prependTo Reproduce
Create a
Rakefile:Run
rake testExpected behavior
rake testshould not causeSystemStackErrorActual behavior
rake testends withSystemStackErrorEnvironment