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

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

Open
lina1 opened this issue Dec 21, 2020 · 15 comments

Comments

@lina1
Copy link

lina1 commented Dec 21, 2020

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
Copy link

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
Copy link

G33N commented Dec 24, 2020

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
Copy link

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
Copy link

jhsware commented Dec 30, 2020

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
Copy link

cacpmw commented Jan 2, 2021

Same problem here

@c-ryan747
Copy link
Contributor

c-ryan747 commented Jan 4, 2021

I think this should be fixed by #facebook/homebrew-fb#47

Just waiting on the author to push it

@wendyliew99
Copy link

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

@igorrmotta
Copy link

+1

@micheleb
Copy link

micheleb commented Jan 6, 2021

facebook/homebrew-fb#47 was pushed, this issue seems to be solved now 🚀

@OrLevy23
Copy link

OrLevy23 commented Feb 9, 2021

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
Copy link

nesevis commented Feb 9, 2021

Same. We're still waiting for facebook/homebrew-fb#53 to be merged.

@AKhozya
Copy link

AKhozya commented Aug 12, 2021

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
Copy link

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

@WuglyakBolgoink
Copy link

brew tap --repair doesn't help

you need to follow this steps facebook/homebrew-fb#63 (comment)

@friederbluemle
Copy link

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

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