Fix go.mod // indirect markers
ProprietaryCorrect the // indirect markers on require directives in go.mod: a requirement is direct when a package in the module imports it and indirect otherwise. Requirements are never removed, so the change is always build-safe; a genuinely unused requirement is marked // indirect rather than removed.
org. openrewrite. golang. migration. FixGoModIndirectMarkersmod run . --recipe= org. openrewrite. golang. migration. FixGoModIndirectMarkersInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.