-
Spike
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
False
-
None
-
False
-
RUN 232
The github.com/pkg/errors package is archived upstream and as a result is no longer even nominally maintained. Since go 1.13, the standard library's fmt.Errorf() has recognized a %w specifier that can be used for wrapping errors with additional context.
The standard library does not currently record a stack trace the first time an error is produced or wrapped, so that functionality would need to come from somewhere else if we want to keep it. If not, we should proceed with a straightforward replacement of Wrapf() with standard library wrapping using fmt.Errorf() and the %w specifier, and audit our use of errors.Cause().