x/tools/gopls: Cannot refer to a file with a prefix from a file without a test prefix #57297
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
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?
I created two files that a file with
_test
prefix in the package name without_test
prefix in the extension and a file with_test
prefix in the package name with_test
prefix in the extension.What did you expect to see?
Build and test succeed, but gopls reports an error referencing a test file from a test package with no test prefix in the file extension.
What did you see instead?
The test file can be referenced from the test package even if it does not have the test prefix in the extension.
The text was updated successfully, but these errors were encountered: