NuGet / NuGetGallery

NuGet Gallery is a package repository that powers https://www.nuget.org. Use this repo for reporting NuGet.org issues.
https://www.nuget.org/
Apache License 2.0
1.54k stars 645 forks source link

[V3] Add source repository information #6262

Open loic-sharma opened 6 years ago

loic-sharma commented 6 years ago

Add the source repository URL and type to the catalog and package metadata resources. This allows clients like Visual Studio and BaGet to display the source repository information.

For more information, see the repository source spec and the change that added source repository information to the Gallery.

xt0rted commented 4 years ago

I've been adding .net support to OctoLinker and now I'm working on pulling the repo info for each package so we can link to that instead of the nuget.org page when available and show hovercards.

It'd be great to see the repo info get surfaced to the json api instead of having to find and parse the latest nuspec file. We're caching this info for 12 hours, but dealing with xml in javascript is far from ideal.

joelverhagen commented 1 year ago

I think the first step would be to add to the Db2Catalog job so catalog leaves moving forward contain this information. There would also be an activity to reflow all packages that have repository information but their latest catalog leaf does not have repository information. Finally, we could update Catalog2Registration to include this property in the package metadata (registration) blobs, when it exists in the catalog leaf.

kzu commented 1 month ago

I came across this issue and would very much like to be able to retrieve the repository URL from the v3 feed. I'd very much like to avoid having to scrap the nuget.org site... 🙏