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

mockgen: Sanitize the "any" package name #132

Merged
merged 1 commit into from
Dec 20, 2023
Merged

Conversation

r-hang
Copy link
Contributor

@r-hang r-hang commented Dec 19, 2023

When a package name is "any" mockgen will use that as a package name in the generated code which causes issues due to colliding with Go's "any" type. Update the sanitization logic to prevent this collision.

@r-hang r-hang marked this pull request as draft December 19, 2023 22:30
When a package name is "any" mockgen will use that as a package name
in the generated code which causes issues due to colliding with Go's
"any" type. Update the sanitization logic to prevent this collision.
@r-hang r-hang marked this pull request as ready for review December 19, 2023 22:41
@sywhang sywhang merged commit 37f6db3 into main Dec 20, 2023
3 checks passed
@sywhang sywhang mentioned this pull request Dec 20, 2023
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