Skip to content
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

"github.com/pkg/errors" is archived #14

Open
takuro-sato opened this issue Jun 22, 2023 · 1 comment
Open

"github.com/pkg/errors" is archived #14

takuro-sato opened this issue Jun 22, 2023 · 1 comment

Comments

@takuro-sato
Copy link
Contributor

https://github.com/pkg/errors

return errors.Wrapf(err, "can't parse URL string")

We need to consider replacing errors.Wrap() or finding a good fork.

@DomAyre DomAyre transferred this issue from microsoft/archived-confidential-sidecar-containers Jul 19, 2023
@mitar
Copy link

mitar commented Oct 8, 2023

Shameless plug: you can also switch it to drop-in replacement gitlab.com/tozd/go/errors. It fixes many issues, is maintained, and supports modern Go's error patterns (sentinel errors, %w formatting, joined errors, etc.). It also provides some nice utility functions and structured details so that it is easy to extract dynamic data out of errors (instead of trying to get them out of formatted strings). Has improved error formatting and JSON marshaling of errors. It is interoperable with other errors packages and does not require a dependency on it to extract data (e.g., stack trace) from errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants