-
Notifications
You must be signed in to change notification settings - Fork 609
Conversation
Not sure why this is working on CI, but if you run cc @cvgw @nguyenfilip Something we should look into |
This may having nothing to do with this PR btw, but would like to get it fixed before evaluating further PRs. |
@linzhp thanks for your patience. I wanted to make sure we got our build properly working on master before we accepted any more PRs. Would you mind rebasing this as there are now some conflicts. |
@codyoss rebased |
Are you planning another release soon? It's been 8 months |
Yes, originally planned for tomorrow: https://github.com/golang/mock/milestone/1 |
@linzhp One more thing, would you mind adding a testcase under |
@codyoss Added a test case |
@linzhp Thank you for your patience and contribution! Should have this rolled up in a release later this week 🎆 |
When users provide
-self_package
, gomock should always exclude that import from generated mock. Thepkg.Name
can be incorrectly determined in reflect mode:mock/mockgen/reflect.go
Lines 206 to 211 in 0b73a1d
We should not reset
outputPackagePath
when it is passed from-self_package
.Fixing #342