go:generate compile errors on core Go modules #2056
mpetronic
started this conversation in
Discussions
Replies: 2 comments
-
It looks like a problem of |
Beta Was this translation helpful? Give feedback.
0 replies
-
@hyangah - Thanks for chiming in. I was able to solve the issue. See: golang/mock#619 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Can anyone explain why I am getting errors like this trying to generate a mock for an interface? If I include the "io" package, it fails. If I do not include the "io" package, it works. Here is a simple example Go module that I am testing with that reproduces the errors.
The errors I get are like this and there are very many - this is just the head of them...
If I rework the code to NOT include "io", it works. I have tried Go 16 and 17 latest - same results. I am running latest gopls server in vscode on Windows 10 WSL. It seems like the "io" package is pulling in some dependencies that, for some bizarre reason, are resulting compile errors on core Go language modules -very strange and puzzling. I am totally stumped on this one.
Beta Was this translation helpful? Give feedback.
All reactions