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
Failing to generate mocks on 1.13 #103
Comments
The examples are from running |
I might suggest importing the interface and assigning it to a new type local to that package, it is what I am doing with the
Tested, and this generates with ease. |
Cool, thanks for the workaround! |
@johanbrandhorst had the same problem, but it did work with go1.13 on local dev, while repeatedly failing on CI. My guess is that the version of "golang.org/x/tools" package is subtly modified (see also #98). The problem appears specifically when using the As a workaround for the "go list..." issue complaining that the mocked package is not here, I prepared an empty valid go file just for this to pass.
|
This is unfortunately unacceptable as it changes the public API of the package. It seems I will have to keep using 1.12 for now. |
I'm having the same issue |
This fixes matryer#103 and also fixes matryer#102
This fixes matryer#103 and also fixes matryer#102
This command works with go 1.12:
but breaks badly with go 1.13:
Same version of
moq
in both cases,github.com/matryer/moq v0.0.0-20190312154309-6cfb0558e1bd
, e.g., current master.The text was updated successfully, but these errors were encountered: