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

Fix Go's check_status_url and only mark "Removed" if it's pre-existing. #3290

Closed tiegz closed 6 months ago

tiegz commented 6 months ago

currently a Go project that exists in Libraries but does not exist anymore will not be marked as "Removed" because we're checking the Go index API, which returns a 200 but wouldn't return any versions. Since we've already decided to only store Go Modules that are on pkg.go.dev, this changes the status url from the API to pkg.go.dev, which returns 404 for non-existent Go Modules.