Skip to content

Commit

Permalink
Merge pull request #16109 from Bo98/typecheck-sonoma-fix
Browse files Browse the repository at this point in the history
utils/gems: fix Sonoma compatibility check
  • Loading branch information
Bo98 authored Oct 12, 2023
2 parents 41dc533 + 900d867 commit d3fd36d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/utils/gems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ def install_bundler_gems!(only_warn_on_failure: false, setup_path: true, groups:

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
Expand Down

0 comments on commit d3fd36d

Please sign in to comment.