Merge pull request #16109 from Bo98/typecheck-sonoma-fix

utils/gems: fix Sonoma compatibility check
This commit is contained in:
Bo Anderson 2023-10-13 00:16:27 +01:00 committed by GitHub
commit d3fd36da48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,9 +235,9 @@ module Homebrew
valid_user_gem_groups = user_gem_groups & valid_gem_groups
if RUBY_PLATFORM.end_with?("-darwin23")
raise "Sorbet is not currently supported under system Ruby on macOS Sonoma." if groups.include?("sorbet")
raise "Sorbet is not currently supported under system Ruby on macOS Sonoma." if groups.include?("typecheck")
valid_user_gem_groups.delete("sorbet")
valid_user_gem_groups.delete("typecheck")
end
# Combine the passed groups with the ones stored in settings