问题
I want to find out which repos a repo depends on at Github.
Now I can only find the dependent repos of a repo, that is, which repos depends on a repo.
Can I find the repos in the reversed way at Github?
回答1:
It depends on your notion of "dependencies".
In term of Git repositories, one clear dependency is the notion of submodules
On GitHub, simply check for the presence of a .gitmodules file, you you would get in it the list of the url of dependent repository.
But the reverse wouldn't be easy to get: for a given repo, is is harder to find the list of repositories using it.
Maybe try a GitHub code search, limiting its search to files with extension .gitmodules
.
Example: vysheng/tg extension:gitmodules: you see the list of repos using vysheng/tg
as a submodule that way.
回答2:
Since May 23rd, 2019 (two years later), you now have "Dependent repositories"
Dependent repositories surface data from the GitHub dependency graph, showcasing which public repositories depend on the packages in that repository.
See more at "Listing the projects that depend on a repository"
来源:https://stackoverflow.com/questions/43670115/how-to-find-which-repos-a-repo-depends-on-at-github