Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitHub: We haven’t found any dependents for this repository yet

I have seen the feature that show what package depend on a repository.

enter image description here

I have created this repository: https://github.com/bootstrap-styled/v4 and many dependency I create depend on it, just to name a few:

https://github.com/bootstrap-styled/ra-ui

Looking at the package.json, the dependency is used here: https://github.com/bootstrap-styled/ra-ui/blob/master/package.json#L291

This happen only on that repo and we found it weird, because this repo can detect with the same kind of setting https://github.com/bootstrap-styled/bootstrap-styled it's usage without hassle.

What are the criteria? When will the Used by badge appear on that Github page?

Best!

Why is the badge not displayed and how can I make the badge appear?

like image 841
Dimitri Kopriwa Avatar asked May 28 '19 12:05

Dimitri Kopriwa


People also ask

How do I add a dependency to github?

Under your repository name, click Settings. In the "Security" section of the sidebar, click Code security and analysis. Read the message about granting GitHub read-only access to the repository data to enable the dependency graph, then next to "Dependency Graph", click Enable.

What are dependencies on github?

Paket allows you to automatically manage the linking of files from github.com or gist.github.com into your projects. If you have Git installed then Paket also allows you to reference files from other git repositories.

How do you turn off a dependency graph?

You can disable the dependency graph at any time by clicking Disable next to "Dependency Graph" on the settings page for "Code security and analysis."


1 Answers

I couldn't find any documentation for this, but what I've observed is, whenever the dependency begins with an @, it comes up on the Dependency Graph of GitHub without a hyperlink to the repository, otherwise it comes up with a hyperlink to the repo.

If you see the dependencies in the Dependency Graph of the ra-ui repo, you would notice that @bootstrap-styled/v4 would come up without a hyperlink to the repo:

enter image description here

But other dependancies like below would come up with hyperlinks to their respective repos:

enter image description here

When the dependency comes up with a hyperlink to the repo in the Dependency Graph, the same is counted in the Used by feature of GitHub.

If you see the dependency bootstrap-styled is added too in the ra-ui repo, and the Used by feature in the bootstrap-styled repo is showing up fine.

So I believe the Dependency graph of GitHub is not getting a connection between the dependencies which begin with @ and their respective repositories on GitHub and hence not counting them in the Used by feature.

UPDATE:

This issue has been fixed by GitHub and the Used by count is now showing up for repos having scoped packages

like image 94
Madhu Bhat Avatar answered Sep 27 '22 23:09

Madhu Bhat