You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed pipes do not keep their errors after being closed. This had already been filed here and said to be fixed here but it seems like the problem still remains.
Thanks for reporting this and adding the helpful samples.
I think the sleeps / goroutines in the linked playground are a red herring. I've updated your playground with a more simple example: https://play.golang.org/p/vdx89KY3hFr
I think the fix you mentioned is not a part of Go 1.13, but looks like it made the cut for 1.14. The test I linked passes successfully for me on master. I do not believe the issue would pass the bar for backporting.
I'll close this for now, but please feel free to comment if I am mistaken.
I noticed pipes do not keep their errors after being closed. This had already been filed here and said to be fixed here but it seems like the problem still remains.
The test outlined in https://play.golang.org/p/0dHxDLpZGTB (also as a Gist show the failure mode - happening on both darwin and linux at the moment.
This makes relying on the error produced unreliable, and can lead to subtle bugs due to the non-deterministic nature of the error value returned.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?Worked on docker
golang:latest
- ImageID:54e71dcafb7c
go env
OutputWhat did you do?
See: https://play.golang.org/p/0dHxDLpZGTB or Gist
What did you expect to see?
CustomError
What did you see instead?
EOF
The text was updated successfully, but these errors were encountered: