smarty / assertions

Fluent assertion-style functions used by goconvey and gunit. Can also be used in any test or application.
Other
100 stars 34 forks source link

building error #43

Closed orca-zhang closed 3 years ago

orca-zhang commented 3 years ago
# github.com/smartystreets/assertions
../../smartystreets/assertions/panic.go:81:36: undefined: errors.Is
../../smartystreets/assertions/panic.go:116:36: undefined: errors.Is
../../smartystreets/assertions/type.go:146:6: undefined: errors.Is
mdwhatcott commented 3 years ago

@orca-zhang - what version of Go are you using?

Per the go.mod file, usage of this module requires 1.13 or higher. Go 1.13 shipped with new error-handling semantics, including the errors.Is method:

https://golang.org/doc/go1.13#error_wrapping

orca-zhang commented 3 years ago

@mdwhatcott the error occurred when I using semaphoreci to build my project and the latest go version is 1.11.0. I tried upgrade to use semaphoreci 2.0 and it's OK now. Thanks all the same. Best regards.