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

imported package collision: "backoff" imported twice #401

Closed
arjunsingri opened this issue Feb 21, 2020 · 2 comments
Closed

imported package collision: "backoff" imported twice #401

arjunsingri opened this issue Feb 21, 2020 · 2 comments
Labels
status: needs more info This issue need more information from the author. type: question

Comments

@arjunsingri
Copy link

arjunsingri commented Feb 21, 2020

Actual behavior A clear and concise description of what the bug is.
When I run mockgen for my pb.go files, I get the error below:

2020/02/20 16:29:15 imported package collision: "backoff" imported twice

Expected behavior A clear and concise description of what you expected to
happen.
No error is generated and the mocks are generated as well.

To Reproduce Steps to reproduce the behavior

  1. Install mockgen 1.4
  2. Generate mocks using the command below:

mockgen -source=./file.pb.go -package=mock

Additional Information

  • gomock mode (reflect or source): tried both
  • gomock version or git ref: 1.4.0
  • golang version: tried with go1.11 and go1.13
@codyoss codyoss added the status: needs more info This issue need more information from the author. label Feb 21, 2020
@codyoss
Copy link
Member

codyoss commented Feb 21, 2020

Could you please provide us a small code snippet of what a file.pb.go looks like so I can try to reproduce this?

@codyoss
Copy link
Member

codyoss commented Feb 22, 2020

Closing this as a dupe of #156. Lets move all relevant discussion there.

@codyoss codyoss closed this as completed Feb 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: needs more info This issue need more information from the author. type: question
Projects
None yet
Development

No branches or pull requests

2 participants