matryer / moq

Interface mocking tool for go generate
http://bit.ly/meetmoq
MIT License
1.99k stars 126 forks source link

Unexpected package creation during export data loading #168

Closed metalrex100 closed 2 years ago

metalrex100 commented 2 years ago

I'm trying to generate mocks after switching to go 1.18 and refactoring some of my code with generics.

Expected behavior: Mocks generated as previously with no errors.

Actual behavior: Interface mock generation fails with Unexpected package creation during export data loading error.

Additional: some interfaces generated with no errors and some interfaces generation fails. Seems like error occurs in packages where generic code exists.

moq version: v0.2.6

metalrex100 commented 2 years ago

Seems like related to https://github.com/golang/go/issues/45584