x/tools/gopls: renaming test file package declaration package_test
-> package
falsely claims import cycle
#45317
Labels
FrozenDueToAge
gopls/metadata
Issues related to metadata loading in gopls
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Renamed a *_test.go file package declaration from
package godesim_test
topackage godesim
What did you expect to see?
All good, package renamed. No biggie.
What did you see instead?
Gopls insisted there was an import cycle, even after removing the
import ( "godesim" )
statement. After restarting gopls this did not persist. I've been able to reproduce it on several packages.The text was updated successfully, but these errors were encountered: