Closed ntkme closed 6 months ago
Funny lol looks like we both researched this at same time and came up with exactly same solution at same time :smile:
Looks like I was faster by few seconds but still thanks for digging into it! It took me a while to understand what's actually happening and figuring out fix.
Fixes #26.
The issue is that
Rake::FileTask
ignores the scope when being created under a rake namespace: https://github.com/ruby/rake/blob/15e936c87aca9789b6f7a2a0c91566f972720ece/lib/rake/file_task.rb#L50-L56However,
FFI::Compiler::MultiFileTask
honors with the namespace, thus the task would be created with a different fully qualified name, and breaks existing code.