Skip to content

x/tools/go/analysis: report informative error message about gob.Register(fact) conflicts #61304

Open
@adonovan

Description

@adonovan

gob.Register has an unfortunately unfixable bug whereby two packages registering types *p/a.T and *q/a.T get a panic because internally their names are both mapped to *a.T. Witness: https://go.dev/play/p/HtGLdqhHvaG

The analysis.Validate function has the opportunity to detect and report this confusing problem with a helpful explanation. Basically one of the types must be renamed.

@hyangah

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.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