-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Open
Labels
FixPendingIssues that have a fix which has not yet been reviewed or submitted.Issues that have a fix which has not yet been reviewed or submitted.GoCommandcmd/gocmd/goToolProposalIssues describing a requested change to a Go tool or command-line program.Issues describing a requested change to a Go tool or command-line program.
Milestone
Description
Proposal Details
What?
Similar to #27005 and #46289, which were both accepted, go fix -diff should exit with a status code of 1 (rather than the current 0) if any diffs exist.
Why?
- For the same reasons as the other tools behaviors (
go mod tidy -diffcmd/go: add mod tidy -diff #27005 andgofmt -dcmd/gofmt: change -d to exit 1 if diffs exist #46289), its useful for CI/CD, pre-commit hooks, and general code health checks. - Consistency across tools is important.
go fixnow uses analysis to modernize code, so will be used much more commonly and consistently in code integration.- The increasing usage of generative "AI" tooling fairs better when given "guardrails" to check generated code against.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FixPendingIssues that have a fix which has not yet been reviewed or submitted.Issues that have a fix which has not yet been reviewed or submitted.GoCommandcmd/gocmd/goToolProposalIssues describing a requested change to a Go tool or command-line program.Issues describing a requested change to a Go tool or command-line program.