go mod why <packages...>

Show a shortest path in the import graph from the main module to each of the listed packages

Arguments

NameDescription
packages

Options

NameDescription
-mTreat its arguments as a list of modules
-vendorIgnore imports in tests of packages outside the main module