Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

fix not resolving go module major versions #385

Merged
merged 1 commit into from Jan 20, 2020
Merged

fix not resolving go module major versions #385

merged 1 commit into from Jan 20, 2020

Conversation

codyoss
Copy link
Member

@codyoss codyoss commented Jan 14, 2020

This change now makes use of go list to check for package names. This
tool is module aware and allows for better named imports.

To test this change I needed to also add a small package to our mod
file. To keep this import from disappearing from go.mod I made use
of the tools file strategy.

Note this change will change the import names in generated code. This
should not be a breaking change in user code.

Fixes #326

This change now makes use of go list to check for package names. This
tool is module aware and allows for better named imports.

To test this change I needed to also add a small package to our mod
file. To keep this import from disappearing from go.mod I made use
of the tools file strategy.

Note this change will change the import names in generated code. This
should not be a breaking change in user code.

Fixes #326
@codyoss codyoss merged commit 3dcdcb6 into golang:master Jan 20, 2020
@codyoss codyoss deleted the fix326 branch January 20, 2020 19:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mockgen fails when an import includes the major version
2 participants