Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unalias before checking if is interface #3472

Merged
merged 2 commits into from
Jan 7, 2025
Merged

Conversation

StevenACoffman
Copy link
Collaborator

@StevenACoffman StevenACoffman commented Jan 7, 2025

Follow-up to #3471: Use Go 1.22 unalias

When you bind a type with an Any scalar field to a go struct where that field is an interface{}, you have a 50-50 chance you get the generated code with Interface, otherwise Any.

This is extremely annoying. Please see #3414 (comment)

This PR does NOT fix that issue, but seems like it's a good precaution.

Signed-off-by: Steve Coffman steve@khanacademy.org

Signed-off-by: Steve Coffman <steve@khanacademy.org>
@coveralls
Copy link

coveralls commented Jan 7, 2025

Coverage Status

coverage: 73.894% (+0.005%) from 73.889%
when pulling 56904f1 on is_interface_unalias
into 630f3e9 on master.

@StevenACoffman StevenACoffman changed the title Unalias before checing if is interface Unalias before checking if is interface Jan 7, 2025
Signed-off-by: Steve Coffman <steve@khanacademy.org>
@StevenACoffman StevenACoffman marked this pull request as ready for review January 7, 2025 16:39
@StevenACoffman StevenACoffman merged commit 40ad172 into master Jan 7, 2025
18 checks passed
@StevenACoffman StevenACoffman deleted the is_interface_unalias branch January 7, 2025 16:40
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