x/tools/go/analysis: report informative error message about gob.Register(fact) conflicts #61304
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
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/HtGLdqhHvaGThe 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
The text was updated successfully, but these errors were encountered: