warbler icon indicating copy to clipboard operation
warbler copied to clipboard

bundler trait infinite loop on windows

Open dub357 opened this issue 10 months ago • 0 comments

If warbler cannot find the bundler.gemspec (a problem when bundler is installed as a 'default' gem via rubygems and likely a separate issue), then the search through the parent directory tree results in an infinite loop on Windows because the check (which uses a regular expression) only ends the loop if the path is either "." or "/". Neither of these represents the root path on Windows.

https://github.com/jruby/warbler/blob/5ce7ec0dbe6c0f43d671c3f4a88f110838791b1c/lib/warbler/traits/bundler.rb#L48

dub357 avatar Mar 14 '25 15:03 dub357