How to find which repos a repo depends on at Github?

自闭症网瘾萝莉.ら 提交于 2020-08-26 07:09:34

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!