x/tools/cmd/guru: Can't find references if two packages have the same top-level name #38094
Labels
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?
The structure of our API looks like this:
Inside handlers is where we register routes, validate the payload, and generally do all the HTTP stuff. Then handlers calls a function in the corresponding service package, e.g.
handlers/a
will import and call functions inservice/a
. Here we do the business logic.If I'm inside the
handlers/a
namespace and I "Find All References" in vscode on a function defined inservice/a
then guru only finds the references inhandlers/a
. I believe guru gets confused on which namespace "a" is in the code.== handlers/a/a.go ==
What did you expect to see?
I expect to see the references from the imported package.
What did you see instead?
A list of references containing only the usages in the current package.
The text was updated successfully, but these errors were encountered: