chriswalz / bit

Bit is a modern Git CLI
Apache License 2.0
6.05k stars 106 forks source link

homebrew not found the formula #79

Closed 0xhiroooo closed 3 years ago

0xhiroooo commented 3 years ago

Is need tap action beform installing?

chriswalz commented 3 years ago

@Sirormy nope. It's part of homebrew-core. I just tested brew install bit-git and it works fine. Perhaps use the curl installation if you're having problems

einsteinx2 commented 3 years ago

@chriswalz I can confirm I'm seeing the same issue (I'm on the latest Catalina 10.15.7) with updated Homebrew:

ben-mbp-wifi :: ~/workspacex/LocalMusicPlayer ‹git master› » brew update    1 ↵
Already up-to-date.
ben-mbp-wifi :: ~/workspacex/LocalMusicPlayer ‹git master› » brew install bit-git
Updating Homebrew...
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "bit-git".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

Edit: Weirdly, I scrolled back and bit to when I first tried the brew install bit-git command and I see that Homebrew updated and specifically added the bit-git formula, yet it doesn't seem to want to install it...

ben-mbp-wifi :: ~/workspacex/LocalMusicPlayer ‹git master*› » brew install bit-git
Updating Homebrew...
==> Auto-updated Homebrew!
Updated Homebrew from ede7a8359 to 5465a866a.
Updated 4 taps (homebrew/core, homebrew/cask, homebrew/services and adoptopenjdk/openjdk).
==> New Formulae
arturo              k3sup               ox                  taskwarrior-tui
bit-git             libfuse             pdm                 vint
....... <snipped the rest>

Edit 2: Figured it out. I ran brew doctor and found that for some reason, my homebrew-core repo was not on the master branch:

Warning: Homebrew/homebrew-core is not on the master branch.

Check out the master branch by running:
  git -C "$(brew --repo homebrew/core)" checkout master

So I ran the suggested command, and was able to install without issue:

ben-mbp-wifi :: ~ » git -C "$(brew --repo homebrew/core)" checkout master                                                1 ↵
Updating files: 100% (5104/5104), done.
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
ben-mbp-wifi :: ~ » brew install bit-git
==> Downloading https://homebrew.bintray.com/bottles/bit-git-0.9.10.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/5121f15df6d33007aa2276b45056b9edb0c7a3d4df952bb421d16d64deaf1e91?r
######################################################################## 100.0%
==> Pouring bit-git-0.9.10.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/bit-git/0.9.10: 6 files, 13.3MB

@Sirormy maybe try running brew doctor and see if you have the same issue?

chriswalz commented 3 years ago

@einsteinx2 Very interesting, thanks for the update. @Sirormy let us know if @einsteinx2's solution works

0xhiroooo commented 3 years ago

@chriswalz @einsteinx2 Thanks for answering, I found my homebrew not worked well, I just reinstalling that, and now it worked 😄