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

"Redeclared as the imported package name" error when main module and one of dependencies have the same last part #87

Open
zcolleen opened this issue May 15, 2024 · 0 comments

Comments

@zcolleen
Copy link

Hey @hexdigest! This issue is related to gojuno/minimock#87 and about this line of code https://github.com/hexdigest/gowrap/blob/master/generator/generator.go#L211 . If the main module last part and one of dependencies last part are the same, in resulting generated code we will have <import_name> redeclared as the imported package name error.

This code was added here #23 (comment) , there is also said and fixed some issues from the original PR in commit message. Could you please provide some more context, what were those issues?

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

No branches or pull requests

1 participant