You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: replace golang.org/x/xerrors for stdlib errors
The golang.org/x/xerrors module is a transitional module for what became
go1.13 errors. Most of its functionality is now available in stdlib errors,
with the exception of stdlib not providing a stack-trace (and some utility
functions related to that).
Looking at history to see if that functionality was essential for using
this package, I found that the golang.org/x/errors module was introduced
in [apache/arrow@7126fdb], to address [ARROW-7357].
> we should migrate away from `pkg/errors` to `golang.org/x/xerrors` to
> ensure better error handling (and one that is Go-1.13 compatible).
Based on the above, it looks like the intent was to provide compatibility
with go1.13+ errors, which are now mainline, so stdlib errors should be
preferred for this.
[ARROW-7357]: https://issues.apache.org/jira/browse/ARROW-7357
[apache/arrow@7126fdb]: apache/arrow@7126fdb
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
0 commit comments