typecheck: allow typecheck command to run on Apple Silicon
				
					
				
			This commit is contained in:
		
							parent
							
								
									f38783ad4a
								
							
						
					
					
						commit
						c6bb748ea9
					
				@ -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"])
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user