Ruby::Box vs. Zeitwerk

I’ve been experimenting with Ruby::Box which appears to override require globally, which breaks Zeitwerk autoloading. This screws up lots of gems.

1 Like

@MadBomber Welcome to the forum! I haven’t had a chance to take a look at the Ruby::Box but I found this post that explains how Zeiwerk and Ruby::Box are fight Ruby’s shared global object space.

There is also an open issue in zeitwerk and bug in ruby-lang.

1 Like