-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
alias github.com/pkg/errors to pkgerrors #11848
Conversation
I see that you haven't updated any README files. Would it make sense to do so? |
Quality Gate passedIssues Measures |
pkg/errors should get removed altogether, it's been deprecated for years ever since go improved it's error system. https://github.com/pkg/errors?tab=readme-ov-file#roadmap |
( Additionally we should deny importing |
I agree but we have some hold outs for the stack traces that want a replacement. |
Is that a thing? I have been hacking on this: #11697 |
Yep! Denying pkg/errors is even a lint example https://golangci-lint.run/usage/linters/#depguard |
@archseer do you have any recommendations for how we can replace the stack traces? Thats the big blocker for us taking it out |
I have a hack somewhere that adds file and line number caller info to wrapped errors so that you end with something a little more stacktrace-like. We still have stacktraces for zap logs at error and above too. |
This PR is intended to reduce the burden on reviewing this PR #11818 which aims to reduce the dependency on multierr.
NOTES:
reasons this is good.
github.com/pkg/errors