You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Proposal Details
What?
Similar to #27005 and #46289, which were both accepted,
go fix -diffshould exit with a status code of1(rather than the current0) if any diffs exist.Why?
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.go fixnow uses analysis to modernize code, so will be used much more commonly and consistently in code integration.