Brew update asks for github credentials


(John Tromp) #1

On my mac osx mojave system, running brew update prompts me for a github username and password.

Googling around, I found https://github.com/Homebrew/brew/issues/3521
but there seem to be no non-default taps in my installation:

brew update -dv 2>&1 | grep github | grep -v Homebrew | grep -v GITHUB_API_ACCEPT Username for 'https://github.com': Password for 'https://github.com':

Doe anyone know how to remedy this prompting?


(Jonathan Chang) #2

Can you paste the output of brew update -v here. Use triple backticks ``` to delimit code.


(John Tromp) #3

$ brew update -v
Checking if we need to fetch /usr/local/Homebrew…
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-boneyard…
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask…
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core…
Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-boneyard…
Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask…
Username for [redacted]: remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 4 (delta 3), reused 1 (delta 1), pack-reused 0
Unpacking objects: 100% (4/4), done.
From [redacted] Homebrew/homebrew-cask
2efd588…dd90b41 master -> origin/master
Password for ‘https://github.com’:
remote: Repository not found.
fatal: Authentication failed for ‘https://github.com/Homebrew/homebrew-boneyard/
Error: homebrew/homebrew-boneyard does not exist! Run ‘brew untap homebrew/homebrew-boneyard’
Updating /usr/local/Homebrew…
Branch master set up to track remote branch master from origin.
Switched to and reset branch ‘master’
Your branch is up-to-date with ‘origin/master’.
Switched to and reset branch ‘stable’
Current branch stable is up to date.
Updating /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask…
First, rewinding head to replay your work on top of it…
Fast-forwarded master to origin/master.
Updated 1 tap (homebrew/cask).
No changes to formulae.

I then decided to run
$ brew untap homebrew/homebrew-boneyard

and now brew update works again without prompts:-)

Thanks, Jonathan!