Homebrew requires formulae to be in a tap #6351
-
Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 22 replies
-
I'm also having the same issue
|
Beta Was this translation helpful? Give feedback.
-
This looks related to Homebrew/brew#20487. CC @Bo98 Feel free to file an issue at Homebrew/brew. |
Beta Was this translation helpful? Give feedback.
-
still cant install local formulas, same error.
|
Beta Was this translation helpful? Give feedback.
-
We are also facing this issue with a local formula. Our brew command:
Our brew version:
error:
|
Beta Was this translation helpful? Give feedback.
This comment has been minimized.
This comment has been minimized.
-
also encountered the same issues when execute the scripts below
it return
And I installed the latest version
Hope to know how to resolve |
Beta Was this translation helpful? Give feedback.
-
I get this error despite the fact that I already install the formula from my local tap (it is also available on GitHub). Moreover, the formula installation is completed correctly, and the problem occurs only at the $ brew reinstall studiomax/elastic-linux/elasticsearch-full
==> Fetching downloads for: elasticsearch-full
==> Fetching studiomax/elastic-linux/elasticsearch-full
==> Downloading https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.28-linux-x86_64.tar.gz?tap=elastic/homebrew-tap
Already downloaded: <path>/storage/Homebrew/cache/downloads/26ffa421a0ad35fec841825fd7b0ce4e8d707c700127c3480a21d49bd649cda6--elasticsearch-7.17.28-linux-x86_64.tar.gz
==> Reinstalling studiomax/elastic-linux/elasticsearch-full
Warning: Tried to install empty array to /home/linuxbrew/.linuxbrew/etc/elasticsearch/jvm.options.d
Warning: The post-install step did not complete successfully
You can try again using:
brew postinstall studiomax/elastic-linux/elasticsearch-full
Warning: Removed Sorbet lines from backtrace!
Rerun with `--verbose` to see the original backtrace
==> Caveats
Data: /home/linuxbrew/.linuxbrew/var/lib/elasticsearch/elasticsearch_linuxbrew/
Logs: /home/linuxbrew/.linuxbrew/var/log/elasticsearch/elasticsearch_linuxbrew.log
Plugins: /home/linuxbrew/.linuxbrew/var/elasticsearch/plugins/
Config: /home/linuxbrew/.linuxbrew/etc/elasticsearch/
To start studiomax/elastic-linux/elasticsearch-full now and restart at login:
brew services start studiomax/elastic-linux/elasticsearch-full
Or, if you don't want/need a background service you can just run:
/home/linuxbrew/.linuxbrew/opt/elasticsearch-full/bin/elasticsearch
==> Summary
🍺 /home/linuxbrew/.linuxbrew/Cellar/elasticsearch-full/7.17.28: 940 files, 517.3MB, built in 9 seconds
==> Running `brew cleanup elasticsearch-full`...
Disable this behaviour by setting `HOMEBREW_NO_INSTALL_CLEANUP=1`.
Hide these hints with `HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).
==> No outdated dependents to upgrade! With $ HOMEBREW_DEVELOPER=1 brew reinstall studiomax/elastic-linux/elasticsearch-full
==> Fetching downloads for: elasticsearch-full
==> Fetching studiomax/elastic-linux/elasticsearch-full
==> Downloading https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.28-linux-x86_64.tar.gz?tap=elastic/homebrew-tap
Already downloaded: <path>/storage/Homebrew/cache/downloads/26ffa421a0ad35fec841825fd7b0ce4e8d707c700127c3480a21d49bd649cda6--elasticsearch-7.17.28-linux-x86_64.tar.gz
==> Reinstalling studiomax/elastic-linux/elasticsearch-full
Warning: Tried to install empty array to /home/linuxbrew/.linuxbrew/etc/elasticsearch/jvm.options.d
==> Caveats
Data: /home/linuxbrew/.linuxbrew/var/lib/elasticsearch/elasticsearch_linuxbrew/
Logs: /home/linuxbrew/.linuxbrew/var/log/elasticsearch/elasticsearch_linuxbrew.log
Plugins: /home/linuxbrew/.linuxbrew/var/elasticsearch/plugins/
Config: /home/linuxbrew/.linuxbrew/etc/elasticsearch/
To start studiomax/elastic-linux/elasticsearch-full now and restart at login:
brew services start studiomax/elastic-linux/elasticsearch-full
Or, if you don't want/need a background service you can just run:
/home/linuxbrew/.linuxbrew/opt/elasticsearch-full/bin/elasticsearch
==> Summary
🍺 /home/linuxbrew/.linuxbrew/Cellar/elasticsearch-full/7.17.28: 940 files, 517.3MB, built in 10 seconds
==> Running `brew cleanup elasticsearch-full`...
Disable this behaviour by setting `HOMEBREW_NO_INSTALL_CLEANUP=1`.
Hide these hints with `HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).
==> No outdated dependents to upgrade!
$ brew postinstall studiomax/elastic-linux/elasticsearch-full --debug --verbose
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FromTapLoader): loading studiomax/elastic-linux/elasticsearch-full
==> Postinstalling elasticsearch-full
Warning: The post-install step did not complete successfully
You can try again using:
brew postinstall studiomax/elastic-linux/elasticsearch-full
==> Homebrew requires formulae to be in a tap, rejecting:
/home/linuxbrew/.linuxbrew/opt/elasticsearch-full/.brew/elasticsearch-full.rb (/home/linuxbrew/.linuxbrew/Cellar/elasticsearch-full/7.17.28/.brew/elasticsearch-full.rb)
To create a tap, run e.g.
brew tap-new <user|org>/<repository>
To create a formula in a tap run e.g.
brew create <url> --tap=<user|org>/<repository>
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/utils/path.rb:38:in 'Utils::Path.loadable_package_path?'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12521/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12521/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12521/lib/types/private/methods/_methods.rb:277:in 'block in Utils::Path._on_method_added'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:731:in 'Formulary::FromPathLoader.try_new'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12521/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12521/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12521/lib/types/private/methods/_methods.rb:277:in 'block in Formulary::FromPathLoader._on_method_added'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:1370:in 'block in Formulary.loader_for'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:1369:in 'Array#each'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:1369:in 'Formulary.loader_for'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12521/lib/types/private/methods/call_validation.rb:179:in 'UnboundMethod#bind_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12521/lib/types/private/methods/call_validation.rb:179:in 'T::Private::Methods::CallValidation.validate_call_skip_block_type'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12521/lib/types/private/methods/call_validation.rb:121:in 'block in Formulary.create_validator_slow_skip_block_type'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:1137:in 'Formulary.factory'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12521/lib/types/private/methods/call_validation.rb:179:in 'UnboundMethod#bind_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12521/lib/types/private/methods/call_validation.rb:179:in 'T::Private::Methods::CallValidation.validate_call_skip_block_type'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12521/lib/types/private/methods/call_validation.rb:121:in 'block in Formulary.create_validator_slow_skip_block_type'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula_installer.rb:1331:in 'FormulaInstaller#post_install_formula_path'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12521/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12521/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12521/lib/types/private/methods/_methods.rb:277:in 'block in FormulaInstaller#_on_method_added'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula_installer.rb:1351:in 'FormulaInstaller#post_install'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12521/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12521/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12521/lib/types/private/methods/_methods.rb:277:in 'block in FormulaInstaller#_on_method_added'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cmd/postinstall.rb:26:in 'block in Homebrew::Cmd::Postinstall#run'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cmd/postinstall.rb:21:in 'Array#each'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cmd/postinstall.rb:21:in 'Homebrew::Cmd::Postinstall#run'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12521/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12521/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.6.12521/lib/types/private/methods/_methods.rb:277:in 'block in Homebrew::Cmd::Postinstall#_on_method_added'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:101:in '<main>' |
Beta Was this translation helpful? Give feedback.
-
Also having this issue trying to install LLVM@head: brew install llvm --HEAD
...
Warning: The post-install step did not complete successfully
==> Homebrew requires formulae to be in a tap, rejecting:
/home/dev/.cache/Homebrew/api-source/Homebrew/homebrew-core/cbfe4800dd14914fc1f31f5dcbceef07f5f0a42a/Formula/llvm.rb (/home/dev/.cache/Homebrew/downloads/28363d2161c57601c0eaaaca460b49a7f82a137817820ea168b5a249a09dfabd--llvm.rb)
To create a tap, run e.g.
brew tap-new <user|org>/<repository>
To create a formula in a tap run e.g.
brew create <url> --tap=<user|org>/<repository> 4 hour docker build :( |
Beta Was this translation helpful? Give feedback.
Already fixed here Homebrew/brew#20507