facebook / idb

idb is a flexible command line interface for automating iOS simulators and devices
https://fbidb.io
MIT License
4.54k stars 437 forks source link

get the error message when install "Error: Cannot tap facebook/fb: invalid syntax in tap!" #646

Open lina1 opened 3 years ago

lina1 commented 3 years ago

Description

Error: Cannot tap facebook/fb: invalid syntax in tap!

Reproduction

  1. when execute the command "brew tap facebook/fb"
  2. got the error "Error: Cannot tap facebook/fb: invalid syntax in tap!"
  3. the error message is like this

Error: Invalid formula: /usr/local/Homebrew/Library/Taps/facebook/homebrew-fb/buck.rb buck: Calling depends_on :java is disabled! Use "depends_on "openjdk@11", "depends_on "openjdk@8" or "depends_on "openjdk" instead. Please report this issue to the facebook/fb tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it: /usr/local/Homebrew/Library/Taps/facebook/homebrew-fb/buck.rb:19 Warning: Calling depends_on :osxfuse is deprecated! There is no replacement. Please report this issue to the facebook/fb tap (not Homebrew/brew or Homebrew/core): /usr/local/Homebrew/Library/Taps/facebook/homebrew-fb/xar.rb:8

archcorsair commented 3 years ago

I'm experiencing the same issue

MacOS 11.1
zsh 5.8 (x86_64-apple-darwin20.0)
Homebrew 2.7.0
Homebrew/homebrew-core (git revision ff46a5; last commit 2020-12-21)
Homebrew/homebrew-cask (git revision b574e; last commit 2020-12-21)
G33N commented 3 years ago

Hi!

Same issue here:

$ brew tap facebook/fb

Updating Homebrew...
==> Tapping facebook/fb
Cloning into '/usr/local/Homebrew/Library/Taps/facebook/homebrew-fb'...
remote: Enumerating objects: 46, done.
remote: Counting objects: 100% (46/46), done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 333 (delta 27), reused 24 (delta 13), pack-reused 287
Receiving objects: 100% (333/333), 5.44 MiB | 4.05 MiB/s, done.
Resolving deltas: 100% (179/179), done.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/facebook/homebrew-fb/buck.rb
buck: Calling depends_on :java is disabled! Use "depends_on "openjdk@11", "depends_on "openjdk@8" or "depends_on "openjdk" instead.
Please report this issue to the facebook/fb tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/facebook/homebrew-fb/buck.rb:19

Warning: Calling depends_on :osxfuse is deprecated! There is no replacement.
Please report this issue to the facebook/fb tap (not Homebrew/brew or Homebrew/core):
  /usr/local/Homebrew/Library/Taps/facebook/homebrew-fb/xar.rb:8

Error: Cannot tap facebook/fb: invalid syntax in tap!
MacOS 11.1
Homebrew 2.7.0
Homebrew/homebrew-core (git revision 2886f24; last commit 2020-12-23)
cuteworld commented 3 years ago

Hi!

Same issue here:

% brew tap facebook/fb Updating Homebrew... ==> Auto-updated Homebrew! Updated 1 tap (homebrew/cask). ==> Updated Casks Updated 2 casks.

==> Tapping facebook/fb Cloning into '/usr/local/Homebrew/Library/Taps/facebook/homebrew-fb'... remote: Enumerating objects: 46, done. remote: Counting objects: 100% (46/46), done. remote: Compressing objects: 100% (33/33), done. remote: Total 333 (delta 27), reused 24 (delta 13), pack-reused 287 Receiving objects: 100% (333/333), 5.44 MiB | 3.08 MiB/s, done. Resolving deltas: 100% (179/179), done. Error: Invalid formula: /usr/local/Homebrew/Library/Taps/facebook/homebrew-fb/buck.rb buck: Calling depends_on :java is disabled! Use "depends_on "openjdk@11", "depends_on "openjdk@8" or "depends_on "openjdk" instead. Please report this issue to the facebook/fb tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it: /usr/local/Homebrew/Library/Taps/facebook/homebrew-fb/buck.rb:19

Warning: Calling depends_on :osxfuse is deprecated! There is no replacement. Please report this issue to the facebook/fb tap (not Homebrew/brew or Homebrew/core): /usr/local/Homebrew/Library/Taps/facebook/homebrew-fb/xar.rb:8

Error: Cannot tap facebook/fb: invalid syntax in tap!

Macos 10.15.6 Homebrew 2.7.0 Homebrew/homebrew-core (git revision 00ca6a; last commit 2020-12-27) Homebrew/homebrew-cask (git revision fd2381; last commit 2020-12-27) openjdk version "1.8.0_275" OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_275-b01) OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.275-b01, mixed mode)

jhsware commented 3 years ago

Here is a work around until they have applied the PR that fixes the issue https://stackoverflow.com/questions/65399729/invalid-formula-usr-local-homebrew-library-taps-facebook-homebrew-fb-buck-rb

cacpmw commented 3 years ago

Same problem here

c-ryan747 commented 3 years ago

I think this should be fixed by #https://github.com/facebook/homebrew-fb/pull/47

Just waiting on the author to push it

wendyliew99 commented 3 years ago

Running into the same issue. Cannot use the workaround as connection to github is not allowed on my corporate machine.

igorrmotta commented 3 years ago

+1

micheleb commented 3 years ago

https://github.com/facebook/homebrew-fb/pull/47 was pushed, this issue seems to be solved now 🚀

OrLevy23 commented 3 years ago

I'm still getting an error:

Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
Updated 3 formulae.
==> Updated Casks
Updated 1 cask.

==> Tapping facebook/fb
Cloning into '/usr/local/Homebrew/Library/Taps/facebook/homebrew-fb'...
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 342 (delta 4), reused 4 (delta 2), pack-reused 333
Receiving objects: 100% (342/342), 5.44 MiB | 3.69 MiB/s, done.
Resolving deltas: 100% (185/185), done.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/facebook/homebrew-fb/xar.rb
xar: Calling depends_on :osxfuse is disabled! There is no replacement.
nesevis commented 3 years ago

Same. We're still waiting for https://github.com/facebook/homebrew-fb/pull/53 to be merged.

AKhozya commented 3 years ago

Started happening for me since yesterday :(

fatal: couldn't find remote ref refs/heads/master Error: Failure while executing; git -C /usr/local/Homebrew/Library/Taps/facebook/homebrew-fb fetch origin exited with 128.

awbashir commented 3 years ago

Running into the same issue. fix it for me brew tap --repair

WuglyakBolgoink commented 3 years ago

brew tap --repair doesn't help

you need to follow this steps https://github.com/facebook/homebrew-fb/issues/63#issuecomment-907247588

friederbluemle commented 3 years ago

For @AKhozya (and others), who came here because of the error fatal: couldn't find remote ref refs/heads/master related to homebrew-fb, this is the solution:

cd /usr/local/Homebrew/Library/Taps/facebook/homebrew-fb
git branch --unset-upstream
git config remote.origin.fetch '+refs/heads/main:refs/remotes/origin/main'
git fetch --prune origin
git branch -m main
git branch -u origin/main
git remote set-head origin -a
rm .git/refs/remotes/origin/master

https://stackoverflow.com/questions/68931524/brew-tap-facebook-fb-results-in-fetching-error/69443351#69443351