-
Notifications
You must be signed in to change notification settings - Fork 244
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
Remove github.com/pkg/errors dependency #5557
Remove github.com/pkg/errors dependency #5557
Conversation
@feloy: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
✅ Deploy Preview for odo-docusaurus-preview canceled. 🔨 Explore the source changes: 8b07352 🔍 Inspect the deploy log: https://app.netlify.com/sites/odo-docusaurus-preview/deploys/623832b2fe337f000949b11f |
fa17929
to
99e54da
Compare
/retest |
/lgtm |
/hold |
e62c94a
to
babc0e1
Compare
babc0e1
to
8b07352
Compare
Kudos, SonarCloud Quality Gate passed!
|
@feloy Can you take a look at the Sonar Cloud code smells and tell me if you'd want to fix them in this PR or separately? They don't seem completely irrelevant to me. |
These smells are about defining constants for errors. It is a more global change to do, not only those raised by this PR. I would prefer that it is done globally in a single PR (like I'm replacing all wrap in this PR) |
/approve Since this is just a rebase. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: valaparthvi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* Change errors.Wrapf * Replace errors.Wrap * Dont use pkg/errors (except error.Cause) * Fix errors on Windows (do not test system underlying message) * Replace errors.Cause * Review
What type of PR is this:
/kind bug
What does this PR do / why we need it:
This PR:
errors.Wrap[f]
withfmt.Errorf
github.com/pkg/errors
with stdlib packageerrors
for calls toerrors.New
errors.Cause
anderrors.Unwrap
The goal is to completely remove the dependency on
github.com/pkg/errors
as this package is deprecated since go.1.13: https://go.dev/blog/go1.13-errors