Format go.mod

Proprietary

Sort the entries of each factored require ( … ) block in go.mod by module path, matching go mod tidy ordering. Versions and // indirect markers travel with their entry; only the ordering changes.

org.openrewrite.golang.migration.FormatGoMod
mod run . --recipe=org.openrewrite.golang.migration.FormatGoMod

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.