Skip to content

Commit 9685cd9

Browse files
committed
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 <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Damien Neil <[email protected]> Reviewed-by: Nooras Saba‎ <[email protected]>
1 parent 656a0a0 commit 9685cd9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

internal/fetch/known_alternatives.go

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ var knownAlternatives = map[string]string{
2929
"github.com/johnstairs/azure-sdk-for-go": "github.com/Azure/azure-sdk-for-go",
3030
"github.com/shopify/sarama": "github.com/Shopify/sarama",
3131
"github.com/ibm/sarama": "github.com/IBM/sarama",
32+
"github.com/burntsushi/toml": "github.com/BurntSushi/toml",
33+
"github.com/burntSushi/toml": "github.com/BurntSushi/toml",
34+
"github.com/Burntsushi/toml": "github.com/BurntSushi/toml",
3235
}
3336

3437
// knownAlternativeFor returns the module that the given module path is an alternative to,

internal/frontend/details.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,8 @@ func checkExcluded(ctx context.Context, ds internal.DataSource, fullPath, versio
104104
// Paths to exclude if they match exactly.
105105
// These are very rare, so it's simpler to hardcode them rather than use the DB.
106106
var caseSensitiveExcludedPaths = map[string]bool{
107-
"github.com/ibm/sarama": true, // https://go.dev/issue/71342
107+
"github.com/ibm/sarama": true, // https://go.dev/issue/71342
108+
"github.com/burntsushi/toml": true, // https://go.dev/issue/68357
109+
"github.com/burntSushi/toml": true,
110+
"github.com/Burntsushi/toml": true,
108111
}

0 commit comments

Comments
 (0)