-
Notifications
You must be signed in to change notification settings - Fork 609
Mockgen installed with go modules cannot find own source #266
Comments
@bhcleek: What was the resolution to this? |
I've runned this: $ go get github.com/golang/mock/gomock
$ go install github.com/golang/mock/mockgen But when I try to find mockgen nothing is shown. $ which mockgen
$ |
Is $GOPATH/bin in your PATH? |
Yes, the soluiton was: go get golang.org/x/tools/go/packages Now it's working, thanks. |
@Helvind have you found the solution? |
I am still having this issue and the solution of In my case I am trying to bump
|
I updating all |
@tommyjcarpenter Were you able to find a solution for this? What was your workaround for this? |
@DevilzOwn unfortunately, I am no longer at the company with that codebase - it's been a couple of years about and I forget those details :(. Sorry! However, there's a non-0 chance I will be working with this package again soon, so maybe I'll be back here. |
I use go modules, and have followed the installation guidelines:
go get github.com/golang/mock/gomock
go install github.com/golang/mock/mockgen
But when I run
mockgen
it failes to find mockgen/models because it does not expect the source to be in the pkg/mod folder, but in srcThe text was updated successfully, but these errors were encountered: