After upgrading to Go 1.20 and using the new errors.Join() from the standard library, there is a false positive from wrapcheck saying that error returned from external package is unwrapped, when errors.Join() is now supposed to be an idiomatic way to wrap multiple errors from external packages.
After upgrading to Go 1.20 and using the new
errors.Join()
from the standard library, there is a false positive fromwrapcheck
saying thaterror returned from external package is unwrapped
, whenerrors.Join()
is now supposed to be an idiomatic way to wrap multiple errors from external packages.More info in the Go 1.20 release notes:
https://tip.golang.org/doc/go1.20#errors