Not installing for go 1.15
obaid-eltropy opened this issue · comments
As per the instructions given for installing moq for go < 1.16, I'm running the following command
go get github.com/matryer/moq
but I'm getting below errors
internal/registry/registry.go:55:68: undefined: types.TypeParamList
internal/registry/registry.go:65:15: undefined: types.TypeParamList
internal/registry/registry.go:68:18: named.TypeParams undefined (type *types.Named has no field or method TypeParams)
🤔 The go.mod
file lists Go 1.18 as requirement. Also the CI pipelines are only testing with Go >= 1.18. So I am not sure, if support for Go < 1.18 is still a goal. Maybe just the instructions in the README.md are outdated.
Since the installation instruction said as follows
To start using latest released version of Moq, just run:
Go version < 1.16
$ go get github.com/matryer/moq
So just wanted to check if it is still supported