aboutsummaryrefslogtreecommitdiff
path: root/internal/fetch/package.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/fetch/package.go')
-rw-r--r--internal/fetch/package.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fetch/package.go b/internal/fetch/package.go
index eacfc6f8..fe300dc9 100644
--- a/internal/fetch/package.go
+++ b/internal/fetch/package.go
@@ -375,7 +375,7 @@ func extractPackageMetas(ctx context.Context, modulePath, resolvedVersion string
// working Go programs. We continue to ignore the "." and "testdata"
// cases, but we've seen valid Go packages with "_", so we accept those.
func ignoredByGoTool(importPath string) bool {
- for _, el := range strings.Split(importPath, "/") {
+ for el := range strings.SplitSeq(importPath, "/") {
if strings.HasPrefix(el, ".") || el == "testdata" {
return true
}