errors: repo-scoped 404s name neither forge nor slug nor config source - "API error 404: not found" is a puzzle when the real problem is a forge mismatch #199
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sixfold-space/madtea#199
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Repro
In the #197 split-brain repo (local
madtea.url-> forge Y from repo config, origin -> forge X):That one line is everything the user gets. It does not say which forge was contacted, which owner/repo slug was requested, or where the URL came from. The user's actual next steps in the live session were: run
auth login(no change), runmadtea update(no change), give up and hand the transcript to an agent - which had to read clone.go, config.go, and setup.go to discover the madtea.url override. Every piece of information needed to self-diagnose was known to the process at error time and thrown away.Expected
A repo-scoped 404 names the full request context and walks the user to the fix:
Concretely:
auth whoamialready computes inGetCredentialsWithSource.House principle: loud, explicit errors with next steps - never a bare status code the user has to reverse-engineer.
Related