diff options
| author | Sean Liao <sean@liao.dev> | 2025-03-04 18:15:04 +0000 |
|---|---|---|
| committer | Sean Liao <sean@liao.dev> | 2025-03-12 02:54:53 -0700 |
| commit | 9685cd9cccb49c53773c2b8ab8f2a5e6de3a1c12 (patch) | |
| tree | 451613039e361bfb67a773e2c53b0f689cadcdc7 | |
| parent | 656a0a051eeb9bd12d44e8000e856b0ee23568b1 (diff) | |
| download | go-x-pkgsite-9685cd9cccb49c53773c2b8ab8f2a5e6de3a1c12.tar.xz | |
internal: case sensitive exclude for github.com/BurntSushi/toml
For golang/go#68357
Change-Id: I1b64b6d288b947d3db4ea6149a7e7c4e7632dc0c
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/654735
kokoro-CI: kokoro <noreply+kokoro@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Nooras Saba <noorassaba@google.com>
| -rw-r--r-- | internal/fetch/known_alternatives.go | 3 | ||||
| -rw-r--r-- | internal/frontend/details.go | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/internal/fetch/known_alternatives.go b/internal/fetch/known_alternatives.go index 3a79c7df..1759250b 100644 --- a/internal/fetch/known_alternatives.go +++ b/internal/fetch/known_alternatives.go @@ -29,6 +29,9 @@ var knownAlternatives = map[string]string{ "github.com/johnstairs/azure-sdk-for-go": "github.com/Azure/azure-sdk-for-go", "github.com/shopify/sarama": "github.com/Shopify/sarama", "github.com/ibm/sarama": "github.com/IBM/sarama", + "github.com/burntsushi/toml": "github.com/BurntSushi/toml", + "github.com/burntSushi/toml": "github.com/BurntSushi/toml", + "github.com/Burntsushi/toml": "github.com/BurntSushi/toml", } // knownAlternativeFor returns the module that the given module path is an alternative to, diff --git a/internal/frontend/details.go b/internal/frontend/details.go index 19e2b949..27b40f05 100644 --- a/internal/frontend/details.go +++ b/internal/frontend/details.go @@ -104,5 +104,8 @@ func checkExcluded(ctx context.Context, ds internal.DataSource, fullPath, versio // Paths to exclude if they match exactly. // These are very rare, so it's simpler to hardcode them rather than use the DB. var caseSensitiveExcludedPaths = map[string]bool{ - "github.com/ibm/sarama": true, // https://go.dev/issue/71342 + "github.com/ibm/sarama": true, // https://go.dev/issue/71342 + "github.com/burntsushi/toml": true, // https://go.dev/issue/68357 + "github.com/burntSushi/toml": true, + "github.com/Burntsushi/toml": true, } |
