jmattheis / goverter

Generate type-safe Go converters by simply defining an interface
https://goverter.jmattheis.de/
MIT License
487 stars 46 forks source link

@v0.17.1 report this error with go run :# github.com/jmattheis/goverter/xtype ../../../../pkg/mod/github.com/jmattheis/goverter@v0.17.1/xtype/type.go:279:11: t.TypeArgs undefined (type *types.Named has no field or method TypeArgs) make: *** [model_convert] Error 2 #69

Closed herac1es closed 1 year ago

herac1es commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Include the input file that goverter has problems with, and describe the steps you took to trigger the bug

Expected behavior A clear and concise description of what you expected to happen.

jmattheis commented 1 year ago

Could you provide the files to reproduce this bug? Also describe how you've executed goverter and what go version you're using.

jmattheis commented 1 year ago

You're probably using a go version that cannot build goverter, can you update your go version?

jmattheis commented 1 year ago

In v0.17.1 goverter added support for generics, this increased the required go version for building goverter to go1.18. With goverter v0.17.2 the minimum go version for using goverter is go1.16.