Merge pull request #19772 from Homebrew/warnings-for-devs

standalone/init: enable more warnings for developers
This commit is contained in:
Bo Anderson 2025-04-18 18:55:12 +00:00 committed by GitHub
commit e67416d771
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,6 +24,13 @@ else
vendored_versions.include?("#{ruby_major}.#{ruby_minor}")
end.freeze
# TODO(odeprecated): remove `respond_to?` check when required Ruby >= 3.4
if ENV["HOMEBREW_DEVELOPER"] && Warning.respond_to?(:categories)
Warning.categories.each do |category|
Warning[category] = true
end
end
# Setup Homebrew::FastBootRequire for faster boot requires.
# Inspired by https://github.com/Shopify/bootsnap/wiki/Bootlib::Require
require "rbconfig"