-
Notifications
You must be signed in to change notification settings - Fork 157
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
Replace github.com/pkg/errors
package
#1838
Comments
Thanks for opening this issue 👍. The team will review it shortly. If this is a bug report, make sure to include clear instructions how on to reproduce the problem with minimal reproducible examples, where possible. If this is a security report, please review our security policy as outlined in SECURITY.md. If you haven't already, please take a moment to review our project's Code of Conduct document. |
Note, I didn't study this issue deeply, but there is a list of what I think should be considered, before applying the proposed changes. |
Possible other options I see here:
The most robust (but at the same time the most effort consuming) solution will be the third option. |
fmt.Errorf
function to report all the errorsgithub.com/pkg/errors
package
I collected some statistics about what we are using and what could be useful:
I've checked which error libraries are available and found two that offer rich functionality.
|
After discussing with @viveksinghggits and @pavannd1, we decided to implement our own solution based on the standard errors package. |
Shameless plug: you can also switch it to drop-in replacement |
@e-sumin which tool have you used to get this clean evaluation ? |
Currently, we are using the
github.com/pkg/errors
package to report error messages. This package is no longer maintained and the repository has been archived.We also use the
fmt.Errorf
function in some places.Use
fmt.Errorf
everywhere or find a suitable alternative and replace all error handling.The text was updated successfully, but these errors were encountered: