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 should not follow type aliases #244

dsnet opened this Issue Dec 5, 2018 · 0 comments


None yet
1 participant

dsnet commented Dec 5, 2018

Suppose mockgen was run on a source file that specified proto.Message. Today, mockgen will generate a file that imports "", which is the current place that proto.Message is declared. However, suppose we were to move proto.Message to a separate package (e.g., "") using type aliases, then mockgen now uses the import for the "real" location that the type is declared. I'd argue that mockgen should not do that. It should produce a file that has a set of dependencies that matches (or is a subset of) the original input file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment