Skip to content

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

@sanojsubran

Description

@sanojsubran

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions