Merge pull request #17411 from Homebrew/typecheck-spoom-better

This commit is contained in:
Issy Long 2024-06-02 22:56:17 +01:00 committed by GitHub
commit e130e47f23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,10 +58,12 @@ module Homebrew
safe_system "bundle", "exec", "parlour" safe_system "bundle", "exec", "parlour"
if args.suggest_typed? 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 # --sorbet needed because of https://github.com/Shopify/spoom/issues/488
safe_system "bundle", "exec", "spoom", "srb", "bump", "--dry", "--sorbet", safe_system "bundle", "exec", "spoom", "srb", "bump", "--dry", "--from", "false", "--to", "true",
"#{Gem.bin_path("sorbet", "srb")} tc" "--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 end
return return