The project still uses this deprecated package in main.go, gen.go, and dir.go files by calling errors.WithStack. Returned errors from these files are simple enough to track and understand. It's not needed to print an extended stack trace. So, we can rewrite to use native errors and fmt.Errorf and avoid using github.com/pkg/errors.
github.com/pkg/errors
is archived and not maintained anymore since Go 1.13. See StackOverflow answer for details.The project still uses this deprecated package in
main.go
,gen.go
, anddir.go
files by callingerrors.WithStack
. Returned errors from these files are simple enough to track and understand. It's not needed to print an extended stack trace. So, we can rewrite to use nativeerrors
andfmt.Errorf
and avoid usinggithub.com/pkg/errors
.What do you think?