typecheck: allow typecheck command to run on Apple Silicon

This commit is contained in:
Dustin Rodrigues 2021-08-11 06:40:22 -04:00
parent f38783ad4a
commit c6bb748ea9
No known key found for this signature in database
GPG Key ID: 140DABE812A1491D

View File

@ -13,8 +13,6 @@ module Homebrew
Homebrew::CLI::Parser.new do
description <<~EOS
Check for typechecking errors using Sorbet.
Not (yet) working on Apple Silicon.
EOS
switch "--fix",
description: "Automatically fix type errors."
@ -44,11 +42,6 @@ module Homebrew
sig { void }
def typecheck
# TODO: update description above if removing this.
if Hardware::CPU.arm? || Hardware::CPU.in_rosetta2?
raise UsageError, "not (yet) working on Apple Silicon or Rosetta 2!"
end
args = typecheck_args.parse
Homebrew.install_bundler_gems!(groups: ["sorbet"])