Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error during install strechr/testify, undefined: errors.Is #1091

Open
raghuiisc opened this issue Jun 21, 2021 · 6 comments
Open

error during install strechr/testify, undefined: errors.Is #1091

raghuiisc opened this issue Jun 21, 2021 · 6 comments

Comments

@raghuiisc
Copy link

github.com/stretchr/testify/assert

/root/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:1704:5: undefined: errors.Is
/root/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:1727:6: undefined: errors.Is
/root/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:1750:5: undefined: errors.As
/root/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:1767:7: undefined: errors.Unwrap
/root/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:1771:7: undefined: errors.Unwrap
note: module requires Go 1.13

I am getting this error after i upgraded to "github.com/go-redis/redis/v8 v8.10.0"

@brackendawson
Copy link
Collaborator

It looks like you are using a go version lower than 1.13, is that right? Currently testify requires at least 1.13. Please run go env and paste the result.

@raghuiisc
Copy link
Author

Thanks once i updated the go version it worked fine.

@NamrataPatel29
Copy link

I updated my go version to 1.13 but my circle ci tests are still failing with the following error
=== Errors
/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:1704:5: undefined: errors.Is
/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:1727:6: undefined: errors.Is
/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:1750:5: undefined: errors.As
/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:1767:7: undefined: errors.Unwrap
/go/pkg/mod/github.com/stretchr/[email protected]/assert/assertions.go:1771:7: undefined: errors.Unwrap
note: module requires Go 1.13

can anyone help me with this?

@brackendawson
Copy link
Collaborator

@NamrataPatel29 your Circle CI is definitely not running go 1.13: https://golang.org/doc/go1.13#errors

@NamrataPatel29
Copy link

@brackendawson yes it was not running go 1.13 , the issue got resolved when it ran go 1.13.

Also i am facing a similar issue whem i am tried updating another dependency (github.com/aws/aws-sdk-go from 1.30.23 to 1.40.10)

=== Errors
/go/pkg/mod/golang.org/x/[email protected]/http2/client_conn_pool.go:305:6: undefined: errors.Is
note: module requires Go 1.17

does this require updation of go to 1.17 ? Isnt error.Is part of Go 1.13 ?

@colin-valentini
Copy link

This issue should be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants