-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"could not import" #81
Comments
Same problem here. Reverting to |
Same problem here. |
For those trying to cope with the new version, I found that you need to |
It looks like |
It does look like @joshk0 is right, and that |
The error is coming from https://github.com/vektra/mockery/blob/master/mockery/parse.go#L67. And that comment above that block makes me think that it requires pkg files for the package for it to work which is why |
Ah yes, I remember now — |
Looks like golang/go#11415 recommends to use golang.org/x/tools/go/loader instead of |
The same issue holds for me, I had to revert to 47a0580 as suggested in #81 (comment) |
Workaround:
Thanks @deadok22 |
Works with every other project I have, just not exactly this one. The project compiles and tests fine, there's nothing unusual about it. Same versions of Mockery and Testify, too.
The text was updated successfully, but these errors were encountered: