Tidy go.mod
ProprietaryApply go mod tidy behavior to go.mod: add missing requirements at their resolved versions, remove unused ones, correct the // indirect markers, add a go directive when one is missing, and sort require blocks. Adding and removing require the module graph resolved at parse time, and are no-ops without it. It does not sync go.sum; the RegenerateGoSum recipe covers that.
org. openrewrite. golang. migration. GoModTidymod run . --recipe= org. openrewrite. golang. migration. GoModTidyInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.