Skip to content

Conversation

@jmattheis
Copy link
Owner

See #213

This is a regression in v1.9.1 where the x/tools update preserved nested
aliases. E.g. map[string]Aliasedtype or *AliasedType. Previously, they
were automatically unaliased.

For top level types goverter already does types.Unalias but this is only
a shallow unalias.

This commit introduces a different approach to match signatures via a
custom hash map where the typehasher from
golang.org/x/tools/go/types/typeutil is used. This should ensure that
aliased types and their counterpart are seen as the same without need to
recursively unalias.
@jmattheis jmattheis merged commit 6bb9208 into main Sep 13, 2025
16 checks passed
@jmattheis jmattheis deleted the nested-aliases branch September 13, 2025 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants