Go client: typed Unauthenticated vs PermissionDenied errors (R21-O22 / CLI-09) #198
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Go wraps every RPC failure in
GatewayError; there is no typedUnauthenticatedvsPermissionDeniedmapping, thoughdocs/ClientLibrariesDesign.mdrequires one.Source:
archreview/2026-10-21/remediation/00-tracking.mdrow R21-O22 (cycle-1 CLI-09)Next step (from the tracker): Add sentinel or typed errors usable with
errors.Is; keep credential redaction.Current-state evidence: the row is still
Open/Deferredin the latest (2026-10-21) tracker, and a code check on localmain@8c0a51d(2026-11-06) found it still present unless noted below.