Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tap is (subtly?) broken on latest Homebrew #14

Open
chriskrycho opened this issue Feb 25, 2025 · 0 comments
Open

Tap is (subtly?) broken on latest Homebrew #14

chriskrycho opened this issue Feb 25, 2025 · 0 comments

Comments

@chriskrycho
Copy link

Trying to run brew doctor, brew upgrade unison-language, brew cleanup, or brew untap unisonweb/unison (and maybe others, but definitely these) produces the following:

Error: Return value: Expected type String, got type BuildOptions with hash 3825908792469305078
Caller: /opt/homebrew/Library/Taps/unisonweb/homebrew-unison/unison-language.rb:30
Definition: /opt/homebrew/Library/Homebrew/formula.rb:3707 (Formula.build)
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11851/lib/types/configuration.rb:296:in `call_validation_error_handler_default'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11851/lib/types/configuration.rb:303:in `call_validation_error_handler'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11851/lib/types/private/methods/call_validation.rb:322:in `report_error'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11851/lib/types/private/methods/call_validation_2_7.rb:63:in `block in create_validator_method_fast0'
/opt/homebrew/Library/Taps/unisonweb/homebrew-unison/unison-language.rb:30:in `<class:UnisonLanguage>'
/opt/homebrew/Library/Taps/unisonweb/homebrew-unison/unison-language.rb:1:in `block in load_formula'
/opt/homebrew/Library/Homebrew/formulary.rb:109:in `module_eval'
/opt/homebrew/Library/Homebrew/formulary.rb:109:in `block in load_formula'
/opt/homebrew/Library/Homebrew/formulary.rb:121:in `load_formula'
/opt/homebrew/Library/Homebrew/formulary.rb:152:in `load_formula_from_path'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11851/lib/types/private/methods/call_validation.rb:179:in `bind_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11851/lib/types/private/methods/call_validation.rb:179:in `validate_call_skip_block_type'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11851/lib/types/private/methods/call_validation.rb:121:in `block in create_validator_slow_skip_block_type'
/opt/homebrew/Library/Homebrew/formulary.rb:528:in `load_file'
/opt/homebrew/Library/Homebrew/formulary.rb:734:in `load_file'
/opt/homebrew/Library/Homebrew/formulary.rb:519:in `klass'
/opt/homebrew/Library/Homebrew/formulary.rb:514:in `get_formula'
/opt/homebrew/Library/Homebrew/formulary.rb:724:in `get_formula'
/opt/homebrew/Library/Homebrew/formulary.rb:927:in `factory'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11851/lib/types/private/methods/call_validation.rb:179:in `bind_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11851/lib/types/private/methods/call_validation.rb:179:in `validate_call_skip_block_type'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11851/lib/types/private/methods/call_validation.rb:121:in `block in create_validator_slow_skip_block_type'
/opt/homebrew/Library/Homebrew/formulary.rb:1013:in `from_keg'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11851/lib/types/private/methods/call_validation.rb:179:in `bind_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11851/lib/types/private/methods/call_validation.rb:179:in `validate_call_skip_block_type'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11851/lib/types/private/methods/call_validation.rb:121:in `block in create_validator_slow_skip_block_type'
/opt/homebrew/Library/Homebrew/formulary.rb:964:in `from_rack'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11851/lib/types/private/methods/call_validation.rb:179:in `bind_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11851/lib/types/private/methods/call_validation.rb:179:in `validate_call_skip_block_type'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11851/lib/types/private/methods/call_validation.rb:121:in `block in create_validator_slow_skip_block_type'
/opt/homebrew/Library/Homebrew/diagnostic.rb:734:in `block in check_for_unreadable_installed_formula'
/opt/homebrew/Library/Homebrew/diagnostic.rb:733:in `each'
/opt/homebrew/Library/Homebrew/diagnostic.rb:733:in `check_for_unreadable_installed_formula'
/opt/homebrew/Library/Homebrew/cmd/doctor.rb:59:in `block in run'
/opt/homebrew/Library/Homebrew/cmd/doctor.rb:52:in `each'
/opt/homebrew/Library/Homebrew/cmd/doctor.rb:52:in `run'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11851/lib/types/private/methods/call_validation.rb:282:in `bind_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11851/lib/types/private/methods/call_validation.rb:282:in `validate_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11851/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added'
/opt/homebrew/Library/Homebrew/brew.rb:95:in `<main>'
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/unisonweb/homebrew-unison/issues/new

I haven’t had any chance to dig deeper on the Ruby side (and likely will not), and it’s possible this is a my-machine thing… but I haven’t touched anything. 😬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant