feat: add doctor mode to detect configuration issues #38
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
heiko/gogogo#38
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?
Summary
Add a
gogogo doctorsubcommand that inspects the project configuration and reports common issues before they cause cryptic failures at release time.Checks to implement
1. Module path mismatch (go.mod vs .gogogo.conf)
Compare the
moduledirective ingo.modwith themodule:field in.gogogo.conf. Report an error if they differ.Example of what this catches:
This mismatch causes verification to fail with a hash mismatch because the proxy zips the module under the go.mod path, but gogogo queries it under the config path.
Future checks (ideas)
restrict30xconfig?)Expected output style