This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
frontend: Use Cloud search for Go import badges (#30350)
This commit fixes our Go import badges on sourcegraph.com, which have been broken since api.godoc.org was brought down. There's a [tracking issue](golang/go#36785) to re-introduce an API for pkg.go.dev, but it's not implemented yet. Instead, we implement a best-effort alternative that relies on searching `go.mod` files for the given repo name on sourcegraph.com. Sometimes packages will have different canonical names than their repositories, and we don't handle that case. There are [many open-source projects that have a broken badge](https://sourcegraph.com/search?q=context:global+sourcegraph.com+-/badge.svg&patternType=regexp). After this lands, they will recover. Co-authored-by: Erik Seliger <erikseliger@me.com> Co-authored-by: Keegan Carruthers-Smith <keegan@sourcegraph.com>
- Loading branch information
1 parent
c3e5464
commit 52fead1
Showing
4 changed files
with
77 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters