-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove uses of github.com/pkg/errors #31702
Comments
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
@cmacknz I am right to assume that the first part of this issue is done but the second one is still pending?
|
Yes that was done in #31772 |
Shameless plug: you can switch it to drop-in replacement |
The package is no longer maintained or recommended. It does not interact seamlessly with the error wrapping in the Go standard library.
Quoting a comment in a PR that originally proposed allowing use of the package again: #31683 (comment)
We can make the following changes to facilitate moving away from github.com/pkg/errors:
errors.Cause
in the beats code. There are not that many of them so this is reasonable to do.github.com/pkg/errors
that passes through to the standard library but returnsnil
whennil
is passed toerrors.Wrap
to preserve the existing behaviour. Automated replacement ofjackfan.us.kg/pkg/errors
failed because of frequent use of this feature of theWrap
implementation. See the many failing tests in Remove pkg errors from beats #31622 for example.The text was updated successfully, but these errors were encountered: