Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace pkg/errors with standard library errors #3936

Closed
jay-khatri opened this issue Jan 30, 2023 · 0 comments
Closed

Replace pkg/errors with standard library errors #3936

jay-khatri opened this issue Jan 30, 2023 · 0 comments

Comments

@jay-khatri
Copy link
Collaborator

jay-khatri commented Jan 30, 2023

The errors library we use is archived and no longer maintained.

It seems like all this library provides for us is the ability to wrap errors (e.g. e.Wrap(err, "failed to read project").

Since we introduced this library, it looks like golang has evolved and we can accomplish the same thing with fmt.Errorf (docs).

Here's an example PR that showcases this refactor.

After this refactor is complete, we should remove this line from the denylist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant