gograph_dependents
Identify all packages that depend on a given Go package before making changes. Returns a list of dependent package names and paths to assess impact.
Instructions
Find all packages that import the named package (inverse of gograph_deps). Requires .gograph/graph.json — run gograph build . first. Read-only; no side effects. WHEN TO USE: Before a package-level interface change or removal — see every dependent package that will be affected. NOT TO USE: For a single function's callers (use gograph_callers); for the package's own outgoing imports (use gograph_deps). RETURNS: List of dependent package names and paths; empty when nothing imports the package (it may be a top-level entry point).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | The package to find dependents for (e.g., 'internal/auth', 'auth', or a full import path) |