cmd/go: 'get -d' failing on modules with only a build-ignored Go file in their root directory #40145
Labels
FrozenDueToAge
GoCommand
cmd/go
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
This fails:
Happens on my local
go version devel +4f2a2d7e26 Wed Jul 8 22:16:24 2020 +0000 linux/amd64
too.Note the build-ignored test file at the root of the module: https://github.com/protocolbuffers/protobuf-go/blob/e14d6b3cdce27a8743907161e84fa6d07e30266d/integration_test.go
The script above succeeds if I use a module that has no Go files at its root, such as
mvdan.cc/sh/v3
. For the time being, I've worked around the issue by manually editinggo.mod
, and thengo mod tidy
ensures it's OK and updatesgo.sum
.This seems like a pretty straightforward bug, and I'm surprised it hasn't surfaced before, but I couldn't find a previous issue. Happy to attempt a fix if the bug can be confirmed - in that case, pointers for the fix would be appreciated. CC @jayconrod @bcmills @matloob
The text was updated successfully, but these errors were encountered: