golang / mock

GoMock is a mocking framework for the Go programming language.
Apache License 2.0
9.3k stars 610 forks source link

mockgen:Loading input failed: Source directory is outside GOPATH #549

Closed pfx546746447 closed 3 years ago

pfx546746447 commented 3 years ago
codyoss commented 3 years ago

Can you please provide some more info to help debug:

1) A small code sample of what you are trying to mock. 2) The exact command you are using to generate the mock. 3) Where you are running that command in relation to the code?

Usually this error means you should just run mockgen from a different directory.

pfx546746447 commented 3 years ago

today i'm on the company computer has this issue,but the computer at home is normal just now. I will try to reinstall it on the company computer,thx

codyoss commented 3 years ago

Closing for now, feel free to reopen if it is still happening and you can provide more details.