incu6us / goimports-reviser

Right imports sorting & code formatting tool (goimports alternative)
MIT License
600 stars 72 forks source link

Get rid of deprecated dependency github.com/pkg/errors #105

Closed alexandear closed 1 year ago

alexandear commented 1 year ago

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, 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.

What do you think?

incu6us commented 1 year ago

yeah, I think it could be removed