utils/gems: fix Sonoma compatibility check

This commit is contained in:
Bo Anderson 2023-10-13 00:02:06 +01:00
parent 41dc533add
commit 900d867345
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -235,9 +235,9 @@ module Homebrew
valid_user_gem_groups = user_gem_groups & valid_gem_groups valid_user_gem_groups = user_gem_groups & valid_gem_groups
if RUBY_PLATFORM.end_with?("-darwin23") 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 end
# Combine the passed groups with the ones stored in settings # Combine the passed groups with the ones stored in settings