Skip to content

x/tools/cmd/guru: does 'implements' really require a scope? #14748

Closed
@dominikh

Description

@dominikh

Currently, running the 'implements' query requires setting a scope. Is this necessary? Why is pointer analysis required for checking the implements relation? Why can't it default to the entire workspace, like 'referrers'?

Also, there's at least a bug here: implements.go checks if a scope has been provided, and if not, uses a different way of determining the packages. However, len(q.Scope) is always greater than 0. If no scope is provided, it's a slice with one element, the empty string.

/cc @alandonovan

Metadata

Metadata

Assignees

No one assigned

    Labels

    ToolsThis label describes issues relating to any tools in the x/tools repository.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions