x/tools/gopls: missing direct requirements also listed in go.mod diagnostics #40470
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
CL 243218 added diagnostics to
go.mod
file where indirect requirements are missing. Quoting from the commit message:However we are seeing non-indirect requirements being reported as
go.mod
diagnostics in thescenario_tempmodfile/modfile_changes
govim
test.What did you expect to see?
Only missing indirect requirements to be listed as
go.mod
diagnostics.What did you see instead?
Missing direct requirements being listed twice: once in the file where they are imported, and secondly in the
go.mod
file.cc @stamblerre @findleyr
FYI @leitzler
The text was updated successfully, but these errors were encountered: