awalterschulze / goderive

Derives and generates mundane golang functions that you do not want to maintain yourself
Apache License 2.0
1.24k stars 43 forks source link

derive: more aggressively check for invalid types #51

Closed jdef closed 5 years ago

jdef commented 5 years ago

Without this change I was able to run goderive on a package that referenced non-existing types, but still was able to generate (invalid) derived code.

Given the same broken package, goderive with this change emits an error instead of completing successfully.

jdef commented 5 years ago

Without this change, the derived func signature in the generated code looked something like:

func deriveDeepCopy_foo(dst, src *invalid type)
awalterschulze commented 5 years ago

Thank you so much :) Great to have some interaction with you again :)