Skip to content

Commit

Permalink
Merge pull request #17411 from Homebrew/typecheck-spoom-better
Browse files Browse the repository at this point in the history
  • Loading branch information
issyl0 authored Jun 2, 2024
2 parents fb81a6d + 80be27d commit e130e47
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Library/Homebrew/dev-cmd/typecheck.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ def run
safe_system "bundle", "exec", "parlour"

if args.suggest_typed?
ohai "Bumping Sorbet `typed` sigils..."
ohai "Checking if we can bump Sorbet `typed` sigils..."
# --sorbet needed because of https://github.com/Shopify/spoom/issues/488
safe_system "bundle", "exec", "spoom", "srb", "bump", "--dry", "--sorbet",
"#{Gem.bin_path("sorbet", "srb")} tc"
safe_system "bundle", "exec", "spoom", "srb", "bump", "--dry", "--from", "false", "--to", "true",
"--sorbet", "#{Gem.bin_path("sorbet", "srb")} tc"
safe_system "bundle", "exec", "spoom", "srb", "bump", "--dry", "--from", "true", "--to", "strict",
"--sorbet", "#{Gem.bin_path("sorbet", "srb")} tc"
end

return
Expand Down

0 comments on commit e130e47

Please sign in to comment.