Occasionally, when failing to brew install or brew upgrade a formula, users will get an error message and the last line of it will be:
Error: Validation Failed: [{"message"=>"The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.", "resource"=>"Search", "field"=>"q", "code"=>"invalid"}]
Occasionally, when failing to
brew install
orbrew upgrade
a formula, users will get an error message and the last line of it will be:Here's an old public example: https://gitlab.com/tabos/rogerrouter/-/issues/21
At Square, this error can be caused by a transient issue with a user's GitHub credentials.
My proposal is that any error which prevents
brew
from showing related issues should:brew
to exit early (vs. printing diagnostic checks and doing any other cleanup)brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?