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
syscall is deprecated, but changing the return type of os.ProcessState.Sys would be an incompatible change. It is particularly bad in the case of Sys because it returns any, so almost every caller explicitly mentions syscall.WaitStatus.
The alternative would be introducing a new method with a new return type and deprecating Sys, but that is a lot of churn without much concrete value. syscall.WaitStatus works fine, even if it is in a deprecated package.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
not sure
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
called ProcessState.Sys()
What did you expect to see?
ProcessState.Sys() returns a non-deprecated result.
What did you see instead?
ProcessState.Sys() returns syscall.WaitStatus()
and syscall is marked as deprecated in the documentation
https://cs.opensource.google/go/go/+/master:src/syscall/syscall.go;l=21?q=syscall.go&ss=go%2Fgo
The text was updated successfully, but these errors were encountered: