Find reverse Go dependencies across GitHub repositories. It supports go modules and dep.
cd
GO111MODULE=on go get github.com/pmatseykanets/gh-tools/cmd/gh-go-rdeps@latest
Usage: gh-go-rdeps [flags] <owner> <path>
owner Repository owner (user or organization)
path Module/package path
Flags:
-help Print this information and exit
-no-repo= The pattern to reject repository names
-repo The pattern to match repository names
-token Prompt for an Access Token
-version Print the version and exit
GHTOOLS_TOKEN
and GITHUB_TOKEN
in the order of precedence can be used to set a GitHub access token.
Find all Go repositories that depend on golang.org/x/sync
:
gh-go-rdeps owner golang.org/x/sync
Find all Go repositories that start with api
and depend on github.com/owner/library
gh-go-rdeps -repo '^api' owner github.com/owner/library