gobuffalo/homebrew-tap is not a valid repository name

August 31, 2021

Short post this time round - hope you’re all staying safe.

A few weeks back I was having a problem installing Go Buffalo (GoLang web framework) using Homebrew on macOS, and faced the error below:

==> Tapping gobuffalo/tap
Cloning into '/opt/homebrew/Library/Taps/gobuffalo/homebrew-tap'...
fatal: remote error: 
  /gobuffalo/homebrew-tap is not a valid repository name
  Visit https://support.github.com/ for help
Error: Failure while executing; `git clone https://github.com/gobuffalo/homebrew-tap /opt/homebrew/Library/Taps/gobuffalo/homebrew-tap --origin=origin` exited with 128.

Turns out it was due to a recent Git SSH config change I’d made.

I’d overriden my global Git config to convert all https requests to GitHub to use SSH; i.e. this is what I had in my ~/.gitconfig file:

[url "ssh://[email protected]/"]
    insteadOf = https://github.com

Not sure why this was causing the failure, but reverting the change allowed Homebrew to work again as expected (I commented this out in the git config file).

Hopefully this helps someone out!

Huge credit to @tconroy whose solution pointed me in the right direction.

Until next time, happy coding, and stay safe!