cmd/go: directory named go.mod defines new module but is otherwise ignored #30788
Labels
FrozenDueToAge
GoCommand
cmd/go
modules
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
I have no idea how I ended up with a go.mod directory, but I did. I discovered this in
x/tools
so that's where the repro is.The way it's ignored by tidy is strange; I imagine there are two code paths for finding go.mod and only one of them checks whether the file is a regular file. This is particularly confusing since Git won't show you an empty directory in
git status
.The text was updated successfully, but these errors were encountered: