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

Brew bundle failing for some formulae Error: wrong number of arguments (given 4, expected 3) #1269

Closed
convenient opened this issue Dec 12, 2023 · 1 comment
Labels

Comments

@convenient
Copy link

$ brew --version
Homebrew 4.1.25-17-g4b90ac2
Homebrew/homebrew-core (git revision 3bf66777d5d; last commit 2023-12-12)
Homebrew/homebrew-cask (git revision 064494d792; last commit 2023-12-12)
$ cat Brewfile
tap "blackfireio/homebrew-blackfire"
brew "blackfire-php74"
$ brew bundle -vvv
Skipping install of blackfireio/blackfire tap. It is already installed.
Using blackfireio/blackfire
Error: wrong number of arguments (given 4, expected 3)
Please report this bug:
  https://github.com/Homebrew/homebrew-bundle/issues
/opt/homebrew/Library/Homebrew/formula.rb:204:in `initialize'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/gems/sorbet-runtime-0.5.10461/lib/types/private/methods/call_validation.rb:157:in `bind_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/gems/sorbet-runtime-0.5.10461/lib/types/private/methods/call_validation.rb:157:in `validate_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/gems/sorbet-runtime-0.5.10461/lib/types/private/methods/call_validation.rb:89:in `block in create_validator_slow'
/opt/homebrew/Library/Taps/blackfireio/homebrew-blackfire/Abstract/abstract-blackfire-php-extension.rb:19:in `initialize'
/opt/homebrew/Library/Homebrew/formulary.rb:498:in `new'
/opt/homebrew/Library/Homebrew/formulary.rb:498:in `get_formula'
/opt/homebrew/Library/Homebrew/formulary.rb:738:in `factory'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/gems/sorbet-runtime-0.5.10461/lib/types/private/methods/call_validation.rb:157:in `bind_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/gems/sorbet-runtime-0.5.10461/lib/types/private/methods/call_validation.rb:157:in `validate_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/gems/sorbet-runtime-0.5.10461/lib/types/private/methods/call_validation.rb:89:in `block in create_validator_slow'
/opt/homebrew/Library/Homebrew/formula.rb:2019:in `[]'
/opt/homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/brew_dumper.rb:43:in `formulae_by_full_name'
/opt/homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/skipper.rb:12:in `skip?'
/opt/homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/installer.rb:39:in `block in install'
/opt/homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/installer.rb:11:in `each'
/opt/homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/installer.rb:11:in `install'
/opt/homebrew/Library/Taps/homebrew/homebrew-bundle/lib/bundle/commands/install.rb:10:in `run'
/opt/homebrew/Library/Taps/homebrew/homebrew-bundle/cmd/bundle.rb:103:in `bundle'
/opt/homebrew/Library/Homebrew/brew.rb:86:in `<main>'

The formula https://github.com/blackfireio/homebrew-blackfire/blob/master/Formula/blackfire-php74.rb and abstract https://github.com/blackfireio/homebrew-blackfire/blob/master/Abstract/abstract-blackfire-php-extension.rb

This used to work and I updated brew recently and started seeing this fail.

@MikeMcQuaid
Copy link
Member

You need to report this to https://github.com/blackfireio/homebrew-blackfire. They are using private APIs that have, as expected, changed so the formula is broken.

@MikeMcQuaid MikeMcQuaid closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants