dev-cmd/typecheck: install all gems on --update

This commit is contained in:
Bo Anderson 2023-04-10 13:20:29 +01:00
parent b84bed7385
commit b94aede51b
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -45,10 +45,12 @@ module Homebrew
def self.typecheck
args = typecheck_args.parse
Homebrew.install_bundler_gems!(groups: ["sorbet"])
update = args.update? || args.update_all?
groups = update ? VALID_GEM_GROUPS : ["sorbet"]
Homebrew.install_bundler_gems!(groups: groups)
HOMEBREW_LIBRARY_PATH.cd do
if args.update? || args.update_all?
if update
odisabled "brew typecheck --update --fail-if-not-changed" if args.fail_if_not_changed?
excluded_gems = [