Skip to content

Commit

Permalink
brew typecheck homebrew/services is looking a little better now?
Browse files Browse the repository at this point in the history
- I did:

```shell
cd $(brew --repo homebrew/services)
mkdir sorbet/
cp $(brew --repo)/Library/Homebrew/sorbet/config sorbet/
brew typecheck homebrew/services
```
  • Loading branch information
issyl0 committed Aug 17, 2024
1 parent e46980d commit c82f749
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/Homebrew/dev-cmd/typecheck.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Typecheck < AbstractCommand
def run
update = args.update? || args.update_all?
tap_path = args.no_named? ? HOMEBREW_LIBRARY_PATH : args.named.to_paths(only: :tap).first
unless (tap_path/"sorbet").exist?
unless (tap_path/"sorbet").directory?
raise UsageError, "Sorbet typechecking is not supported for the #{args.named.first} tap. " \
"Add a `sorbet/` directory with a config file to the tap to enable it."
end
Expand Down Expand Up @@ -101,6 +101,7 @@ def run
end

srb_exec += ["--ignore", args.ignore] if args.ignore.present?
srb_exec += ["--dir", HOMEBREW_LIBRARY_PATH] unless tap_path == HOMEBREW_LIBRARY_PATH
if args.file.present? || args.dir.present?
cd("sorbet") do
srb_exec += ["--file", "../#{args.file}"] if args.file
Expand Down

0 comments on commit c82f749

Please sign in to comment.