← All recipes
Moderne licensed

Find missing go.mod requirements

Recipe IDorg.openrewrite.golang.migration.FindMissingGoModRequiresArtifactgithub.com/moderneinc/recipes-go

Find imports of third-party packages that are not covered by any require directive in the module's go.mod. These are the requirements go mod tidy would add; adding them automatically is not possible offline because it requires resolving module versions over the network.

Single recipeProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.golang.migration.FindMissingGoModRequires

If the recipe isn’t available locally, install it with:

mod config recipes go install github.com/moderneinc/recipes-go