librariesio / libraries.io

:books: The Open Source Discovery Service
https://libraries.io
GNU Affero General Public License v3.0
1.1k stars 206 forks source link

Ask for Canonical Name when Mapping Go Project #3361

Closed mikeyoung85 closed 2 months ago

mikeyoung85 commented 2 months ago

Thoughts on adding a call to get the "canonical" name from Go proxy during the project name mapping for Go projects? This could cut down on casing problems creating multiple Projects, but only for valid Go module projects. There is a noticeable lag when making this request and the proxy does not have a cached response so I think that is the main tradeoff here.

I think the proxy protocol specifies that for projects that do not use go.mod files it will just create a virtual go.mod with the original name passed back, which I think means this is still a problem for any name that comes in for a non module package.

image