Go dependency insight

MSAL

Find direct and transitive Go module dependencies matching a module path pattern. Results include dependencies that either directly match or transitively include a matching dependency.

org.openrewrite.golang.search.DependencyInsight

Required

A glob pattern to match Go module paths. Use * as a wildcard.

Optional

Match only dependencies with the specified version. An exact version or a version range (see the version selector syntax) may be used. All versions are searched by default.

onlyDirectBoolean

If enabled, transitive dependencies will not be considered. All dependencies are searched by default.

mod run . --recipe=org.openrewrite.golang.search.DependencyInsight \ -P modulePattern='github.com/google/*'

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