Hacker News new | ask | show | jobs
by cfors 1855 days ago
What is `rdep`? Couldn't seem to find it with a cursory google search.
2 comments

Reverse dependencies, meaning find all sources that depend on a given file. Likely inspired by the Bazel query function by the same name.

https://docs.bazel.build/versions/master/query.html#rdeps

The sibling comment touches on this, but the class of tooling that lets you analyze (R)everse (dep)endencies. There's a bunch that do similar things, but examples:

Rdep: https://github.com/axw/rdep Gomod: https://github.com/Helcaraxan/gomod

If you look at what they're doing under the hood, its mostly gluing bunch of official Golang libs that let you inspect package-level information.