Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/cmd/gopls: import organization fails in test package #32440
Looks like a bug in golang.org/cl/170238: it checks only the directories in play, ignoring the package names. That won't work in the case of an external test that wants to import the package under test. It also won't work in Bazel, where multiple unrelated packages can be in the same directory.
Possible fix would be to check the candidate's import path vs. the file's import path around hereish but I need to think about it more.