-
Notifications
You must be signed in to change notification settings - Fork 100
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 deprecated packages #298
Conversation
Thanks so much! |
|
Ah that's a bummer. I had looked in the docs to see if the stack was captured, but looking at my browser history, my search had ended up on pkg/errors, not stdlib errors. :/ |
I feel as a library, user are more concerned about if APIs succeed/failed in general, rather than in which part of the library, the error occurred. It's useful to know if email parsing succeed, if not, what's the reason that it failed. So I feel exposing some public error types so that caller can check using stdlib functions is more important. Right now (either the But if stack trace is really what you want, I can take another look to bring it back. But I feel |
I agree. The stack is only visible when formatting errors with As someone who uses this package heavily and also has contributed to it, those stacks have been invaluable for helping track down problems and fixing them. It's why I asked for them in #94.
That is still possible when when using the
Even if one day
It may be old, but it is extremely well used. As of right now, over 200K public imports. |
I agree w/ @dcormier -- debugging parsers is challenging, and real world email tends to be a bit of a torture test so having stack traces outside of a debugger can be helpful. Probably best to revert the errors changes for the time being, but we can obviously keep the ioutil ones |
Ok, I've rolled back the errors changes, as I'd rather not release big changes to our error output twice. @harryzcy -- we can chat about alternate solutions in an new GH issue if you have ideas. |
github.com/pkg/errors
, which is archived since 2021.ioutil
, which is deprecated since Go 1.16