hashicorp / go-multierror

A Go (golang) package for representing a list of errors as a single error.
Mozilla Public License 2.0
2.3k stars 123 forks source link

errors.As and errors.Is are not supported in errors package #36

Closed lily1110 closed 4 years ago

lily1110 commented 4 years ago

When I update this package go get -u github.com/hashicorp/go-multierror It was failed. # github.com/hashicorp/go-multierror ../../hashicorp/go-multierror/multierror.go:112:9: undefined: errors.As ../../hashicorp/go-multierror/multierror.go:117:9: undefined: errors.Is

The As and Is are not in the errors package. Go SDK: 1.10.2

mitchellh commented 4 years ago

That Go version is outdated. Please stick to a prior version of this lib. The errors introduction was Go 1.13 which is already N-1.