-
Notifications
You must be signed in to change notification settings - Fork 701
Future of pkg/errors after proposal ? #202
Comments
I expect this package will move into maintained mode.
… On 13 Apr 2019, at 00:09, Wilk ***@***.***> wrote:
How do you see the future of pkg/errors after the proposal for go1.13 ?
https://go.googlesource.com/proposal/+/master/design/29934-error-values.md
That will even works with older version of go https://godoc.org/golang.org/x/xerrors
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
If there is no wrap function in the proposal, i believe this lib should continue to live. |
pkg/errors could evolve to become compatible with the new proposal ? |
It seems to me adding |
Thank you for raising this issue. I don't have the time to answer in full but the short, and final answer, is this package will be in maintenance once Go 1.13 ships. |
For those coming here who may not have dug through the entire proposal thread, it seems that the final surface of changes in Go 1.13 will be much smaller than the original proposal: golang/go#29934 (comment) In particular, it removed all support for constructing / wrapping errors with any stack / frame information, so it seems the only functionality overlap between Go 1.13 and pkg/errors is the general concept of wrapping. In that case, it seems there will still be widespread desire for pkg/errors. Separate from Go 1.13, I very-much understand the maintainer's decision to consider pkg/errors feature complete and focus on bug fixes only. |
Pull request #206 adds support for the new standard library |
Yes, stack/frame information is still a benefit over stdlib errors. Please keep providing this valuable feature. |
I agree with many of the others here: the new Go 1.13 error wrapping is only a partial replacement for pkg/errors, and we still need to utilize pkg/errors for providing valuable stack trace information since that didn't make it into the Go runtime. I understand the maintainer's desire to spend less time working on this package, but I hope a solution can be found that works well for augmenting Go 1.13 with support for stack traces. As such, I'd suggest:
Someday, if Go runtime ever supports stack traces on errors in a first-class fashion like they have done with error wrapping, then I could see the complete deprecation of this package. Otherwise, finding a way for it to play nice as much as possible would be really valuable. |
If one want to jump directly in the new wagon, there is a tools to replace Finally for my projects i believe Hope theses links help somebody else. |
How do you see the future of pkg/errors after the proposal for go1.13 ?
https://go.googlesource.com/proposal/+/master/design/29934-error-values.md
That will even works with older version of go https://godoc.org/golang.org/x/xerrors
The text was updated successfully, but these errors were encountered: