cmd/go/internal/imports: ScanDir ignores .go files that start with _ but not . #42047
Labels
FrozenDueToAge
GoCommand
cmd/go
modules
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
From https://golang.org/cmd/go/:
ScanDir
has a!strings.HasPrefix(name, "_")
condition but does not have a!strings.HasPrefix(name, ".")
one.As a result, imports in a
_ignore.go
file don't contribute to the module graph:But imports in a
.ignore.go
file do:CC @jayconrod, @matloob, @bcmills.
The text was updated successfully, but these errors were encountered: