Adding Dependencies

I am using the GitHub API to query the dependency graph manifests of a large number of repositories, and it is going great. As I was working, however, I realized that there are a number of repositories that I regularly use code from and I get that code from a CDN. I want these to show up in my manifest, but I don’t actually want any code to try to use it to install packages. Any advice?

:wave: hello there @aidan-epperly and welcome to the GitHub Support Community!

I am using the GitHub API to query the dependency graph manifests of a large number of repositories, and it is going great. As I was working, however, I realized that there are a number of repositories that I regularly use code from and I get that code from a CDN. I want these to show up in my manifest, but I don’t actually want any code to try to use it to install packages. Any advice?

I understand that you’re using the GraphQL API to fetch a repository’s dependency manifest. However, I’m not sure I understand what it means to not want any code to use the manifest to install packages. Could you share more details and possibly a specific example that illustrates this? That would help me get a better understanding of what you’re looking to accomplish. :bowing_man:

Hi, thank you for your reply. One example is that I use d3-simple-slider in my code, but I source it from a cdn. As a result, GitHub does not register it as being a dependency, but I want it to be recognized. I know that I could add this package to a manifest, but then my code would add it as a dependency that had to be installed with the code. This would be unnecessary as I already have a way of getting the code. So, I was wondering if there was a way to more explicitly tell the GitHub API that I want a specific package listed as a dependency without the need to add it to a manifest.