-
Notifications
You must be signed in to change notification settings - Fork 17
Description
ruby 3.3.4, rails 7.2.1.1
After updating some dependencies incluidng rackup from 2.1.0 to 2.2.0.
While my app seems to work actually booting it, when I run CI I get all sorts of errors related to (apparently?) rackup and webrick.
Starts with what looks like a warning, but it winds up with apparently an infinite loop in the stack somehow (related to bootsnap and/or zeitwerk, is it really their bug?), and crashes everything.
/home/runner/work/scihist_digicoll/scihist_digicoll/vendor/bundle/ruby/3.3.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:27: warning: webrick was loaded from the standard library, but is not part of the default gems since Ruby 3.0.0. Add webrick to your Gemfile or gemspec. Also contact author of rackup-2.2.0 to add webrick into its gemspec.
from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/3.3.0/bundled_gems.rb:74:in `block (2 levels) in replace_require'
from /home/runner/work/scihist_digicoll/scihist_digicoll/vendor/bundle/ruby/3.3.0/gems/bootsnap-1.[18](https://github.com/sciencehistory/scihist_digicoll/actions/runs/11726834138/job/32666437115?pr=2776#step:11:19).4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:27:in `require'
from /home/runner/work/scihist_digicoll/scihist_digicoll/vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:34:in `require'
from /home/runner/work/scihist_digicoll/scihist_digicoll/vendor/bundle/ruby/3.3.0/gems/rackup-2.2.0/lib/rackup/handler/webrick.rb:7:in `<main>'
I am not even intentionally using webbrick. The problem is that something (zeitwerk, automatically?) is trying to require rackup/handler/webbrick even though I'm not using it, which then tries to require webrick and crashes things.
I see the webrick dependency was removed in 2.2.0, via #23 .
It may be this is causing unanticipated problems?