gomodule / redigo

Go client for Redis
Apache License 2.0
9.74k stars 1.25k forks source link

Compilation fails for v1.9.1 in go1.16 environment #665

Closed sanojsubran closed 6 months ago

sanojsubran commented 6 months ago

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 6 months ago

Looks like we should update go.mod to require go 1.21 which is the oldest supported version of go.