Compilation fails for v1.9.1 in go1.16 environment
sanojsubran opened this issue · 1 comments
sanojsubran commented
In the latest release v1.9.1, even though the mentioned version in go.mod
file is 1.16,
the compilation fails in a go1.16 env.
Output:
$ go test ./...
# github.com/stretchr/testify/assert
../../go/pkg/mod/github.com/stretchr/testify@v1.8.4/assert/assertions.go:94:23: field.IsExported undefined (type reflect.StructField has no field or method IsExported)
note: module requires Go 1.20
FAIL github.com/gomodule/redigo/redis [build failed]
FAIL github.com/gomodule/redigo/redisx [build failed]
FAIL
$ go version
go version go1.16.15 linux/amd64
stevenh commented
Looks like we should update go.mod
to require go 1.21 which is the oldest supported version of go.